Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Replace typedef with literal type

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...
commit 9c6ae0d5642cf5979ea43112f134a7fb3c02f5b7 1 parent d3a2bb6
@martica martica authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 RIButtonItem.h
View
6 RIButtonItem.h
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.