Sha256: e7f3043401ff2748cdf56e3c0be547f837b838e3a1a3d12ccb97ab6d6b3a64f7
Contents?: true
Size: 574 Bytes
Versions: 2
Compression:
Stored size: 574 Bytes
Contents
#import "NSDictionary+YapDatabase.h" @implementation NSDictionary (YapDatabase) /** * Originally I named this method simply 'containsKey:'. * But then immediately got a stack overflow when using the category. * * Apparently Apple's code actually registers the 'containsKey:' method in the objective-c space. * And invoking CFDictionaryContainsKey results in a method call back to our 'containsKey:' method, * and thus we get an infinite loop. **/ - (BOOL)ydb_containsKey:(id)key { return CFDictionaryContainsKey((CFDictionaryRef)self, (const void *)key); } @end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
motion-yapper-0.0.3 | vendor/Pods/YapDatabase/YapDatabase/Internal/NSDictionary+YapDatabase.m |
motion-yapper-0.0.2 | vendor/Pods/YapDatabase/YapDatabase/Internal/NSDictionary+YapDatabase.m |