| name | language | licence |
|---|---|---|
| Force Application Crash | Objective-C | Other |
| FourCharCode to NSString | Objective-C | Other |
| ROT13 | Objective-C | Other |
| NSIndexSet to String | Objective-C | Other |
| getBoundingClientRect from WebKit using JavaScriptCore | Objective-C | Other |
| NSImage Create QuickLook icon for URL | Objective-C | Other |
| Method Replacement (swizzle) | Objective-C | Other |
| Safe respondsToSelector: override | Objective-C | Other |
< 1 2 3 >
language: Objective-C
licence: Other
Safe respondsToSelector: override
options: view full snippet • send to code collector
// Ensure you do not attempt to log a description of self anywhere in here as it causes a recursive loop
// looking to see if the object respondsToSelector descriptionForLocale:
// According to the official documentation this really shouldn't work but seems to perform just fine.
// Thanks to the Borkware Quickies [http://www.borkware.com/quickies/single?id=148] for proving the docs wrong.
-(BOOL) respondsToSelector:(SEL) aSelector
{
BOOL answer = [super respondsToSelector:aSelector];
NSLog( @"%s %d", (char *) aSelector, answer );
return( answer );
}



library
objective-c (22)