equal
deleted
inserted
replaced
45 Appirater *appirater = [[Appirater alloc] init]; |
45 Appirater *appirater = [[Appirater alloc] init]; |
46 [NSThread detachNewThreadSelector:@selector(appLaunchedHandler) toTarget:appirater withObject:nil]; |
46 [NSThread detachNewThreadSelector:@selector(appLaunchedHandler) toTarget:appirater withObject:nil]; |
47 } |
47 } |
48 |
48 |
49 -(void) appLaunchedHandler { |
49 -(void) appLaunchedHandler { |
50 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; |
50 @autoreleasepool { |
51 |
51 |
52 if (APPIRATER_DEBUG) { |
52 if (APPIRATER_DEBUG) { |
53 [self performSelectorOnMainThread:@selector(showPrompt) withObject:nil waitUntilDone:NO]; |
53 [self performSelectorOnMainThread:@selector(showPrompt) withObject:nil waitUntilDone:NO]; |
54 return; |
54 return; |
55 } |
55 } |
114 |
114 |
115 [userDefaults synchronize]; |
115 [userDefaults synchronize]; |
116 if (!willShowPrompt) |
116 if (!willShowPrompt) |
117 [self autorelease]; |
117 [self autorelease]; |
118 |
118 |
119 [pool release]; |
119 } |
120 } |
120 } |
121 |
121 |
122 -(void) showPrompt { |
122 -(void) showPrompt { |
123 UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:APPIRATER_MESSAGE_TITLE |
123 UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:APPIRATER_MESSAGE_TITLE |
124 message:APPIRATER_MESSAGE |
124 message:APPIRATER_MESSAGE |