groups

name language licence
kqueues C Other
Method Replacement (swizzle) Objective-C Other
Safe respondsToSelector: override Objective-C Other
Convert NSScreen visibleFrame to screen coordinates Objective-C Other
Printing callstacks Objective-C Other
Draw single-pixel on top of splitview Objective-C Other
raw fsevents C Other
NSCollectionView Finding View Items in mouseDown: Objective-C Other

< 1 2 3 4 >



language: Objective-C
licence: Other

Safe respondsToSelector: override

options: view full snippetsend 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 );
}
	
(Continues...)