| name | language | licence |
|---|---|---|
| Force Application Crash | Objective-C | Other |
| 64-bit Number from a String | Perl | Other |
| FourCharCode to NSString | Objective-C | Other |
| Printing Binary Representation of String | 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 |
< 1 2 3 4 >
language: Objective-C
licence: Other
Force Application Crash
options: view full snippet • send 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



library
objective-c (22)