| Index | Submit class | Submit snippet | Submission feed | List |

BSCrashNotifier

Language: Objective-C, Author: Karsten
License: Public domain

BSCrashNotifier is a bundle that allows you to be notified when your app is crashing.

use it with:

NSBundle* bundle = [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"BSCrashNotifier" ofType:@"bundle"]];
Class crashNotifierClass = [bundle principalClass];
if (crashNotifierClass)
{
[crashNotifierClass onCrashSend:@selector(weCrashed:) to:self];
}
else
{
NSLog(@"couldn't load bundle");
}

and implement the notification method like:
- (void)weCrashed:(int)signalNumber
{
NSLog(@"we crashed: %i",signalNumber);
}

BSCrashNotifier source preview

        Mac OS X                  2   ç                                              ATTR Chî       Ø   A                   Ø       com.apple.TextEncoding      ç   2  .com.apple.metadata:kMDItemAttributeChangeDate    UTF-8;134217984bplist003A©J…‹MY°                                 

BSCrashNotifier header preview

        Mac OS X                  2   ç                                              ATTR @ªe       Ø   A                   Ø       com.apple.TextEncoding      ç   2  .com.apple.metadata:kMDItemAttributeChangeDate    UTF-8;134217984bplist003A©J D%–ˆ                                 
Download Archive

Compatible with:


Comments

Michele Balistreri says:

Unfortunately this is very useful :D

Name

Website

Do you hate spammers? (Answer "Yes")