groups

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

Force Application Crash

options: view full snippetsend to code collector
// Helpful for when you're trying to test what your app does when it faults.
// You could also just divide by zero, but that'll only work on Intel.  PPC returns 0.
#define CRASH_CODE 1
#if CRASH_CODE
	NSLog( @"forcing crash" );
	kill( getpid(), SIGABRT );
#endif
	
(Continues...)