Add convenience initializer for the Type Selector

This commit is contained in:
iska
2015-05-14 21:27:08 +02:00
parent 221b085fe5
commit a7a30a7cbf
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -14,6 +14,8 @@
@property (nonatomic, copy) NSString *type;
+ (instancetype)universalSelector;
+ (instancetype)selectorForType:(NSString *)type;
- (instancetype)initWithType:(NSString *)type;
@end
+5
View File
@@ -23,6 +23,11 @@
return [[self alloc] initWithType:@"*"];
}
+ (instancetype)selectorForType:(NSString *)type
{
return [[self alloc] initWithType:type];
}
- (instancetype)initWithType:(NSString *)type
{
self = [super init];