Permalink
Browse files

Converted RIButtonItem to ARC

  • Loading branch information...
1 parent e4268ac commit c0152df8fdd98d791a6ba7e4e9be4c84ef6038d8 Jim Kubicek committed Nov 11, 2011
Showing with 2 additions and 11 deletions.
  1. +1 −1 RIButtonItem.h
  2. +1 −10 RIButtonItem.m
View
@@ -15,7 +15,7 @@ typedef void (^RISimpleAction)();
NSString *label;
RISimpleAction action;
}
-@property (retain, nonatomic) NSString *label;
+@property (strong, nonatomic) NSString *label;
@property (copy, nonatomic) RISimpleAction action;
+(id)item;
+(id)itemWithLabel:(NSString *)inLabel;
View
@@ -14,7 +14,7 @@ @implementation RIButtonItem
+(id)item
{
- return [[self new] autorelease];
+ return [self new];
}
+(id)itemWithLabel:(NSString *)inLabel
@@ -24,14 +24,5 @@ +(id)itemWithLabel:(NSString *)inLabel
return newItem;
}
--(void)dealloc
-{
- [action release];
- action = nil;
- [label release];
- label = nil;
- [super dealloc];
-}
-
@end

0 comments on commit c0152df

Please sign in to comment.