Skip to content

Commit

Permalink
Replace typedef with literal type
Browse files Browse the repository at this point in the history
Using the literal typedef makes Xcode's code sense give you a parameter
stand-in that can be expanded with a shift-enter.
  • Loading branch information
martica committed Apr 5, 2012
1 parent d3a2bb6 commit 9c6ae0d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions RIButtonItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@

#import <Foundation/Foundation.h>

typedef void (^RISimpleAction)();

@interface RIButtonItem : NSObject
{
NSString *label;
RISimpleAction action;
void (^action)();
}
@property (retain, nonatomic) NSString *label;
@property (copy, nonatomic) RISimpleAction action;
@property (copy, nonatomic) void (^action)();
+(id)item;
+(id)itemWithLabel:(NSString *)inLabel;
@end
Expand Down

0 comments on commit 9c6ae0d

Please sign in to comment.