| 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
Printing callstacks
options: view full snippet • send to code collector
// backtrace() available in 10.5
-(id) retain
{
void *callstack[256];
int i, frames = backtrace( callstack, 256 );
char **strs = backtrace_symbols( callstack, frames );
for( i=0; i < frames; ++i )
printf( "%s\n", strs[i] );
free( strs );
return( [super retain] );
}



library
objective-c (22)