Permalink
Browse files

Updates for non-ARC projects

  • Loading branch information...
1 parent 7aaac12 commit 72b4e1ff9e65e2699303f03c59786159cef04fd4 @thuss thuss committed Jun 20, 2012
Showing with 9 additions and 6 deletions.
  1. +4 −4 AnalyticsKit.m
  2. +5 −2 AnalyticsKitDebug.m
View
@@ -17,10 +17,10 @@ +(void)initialize {
}
+(void)initializeLoggers:(NSArray *)loggers {
-#if !__has_feature(objc_arc)
- [loggers retain];
- [_loggers release];
-#endif
+ #if !__has_feature(objc_arc)
+ [loggers retain];
+ [_loggers release];
+ #endif
_loggers = loggers;
}
View
@@ -40,10 +40,13 @@ -(void)endTimedEvent:(NSString *)eventName withProperties:(NSDictionary *)dict{}
-(void)showDebugAlert:(NSString *)message{
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
- UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:@"AnalyticsKit Received Error"
+ UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"AnalyticsKit Received Error"
message:message
delegate:self cancelButtonTitle:@"Ok"
- otherButtonTitles:nil] autorelease];
+ otherButtonTitles:nil];
+ #if !__has_feature(objc_arc)
+ [alert autorelease];
+ #endif
[alert show];
}];
}

0 comments on commit 72b4e1f

Please sign in to comment.