Add convenience initializer for the Type Selector
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
@property (nonatomic, copy) NSString *type;
|
||||
|
||||
+ (instancetype)universalSelector;
|
||||
+ (instancetype)selectorForType:(NSString *)type;
|
||||
|
||||
- (instancetype)initWithType:(NSString *)type;
|
||||
|
||||
@end
|
||||
|
||||
@@ -23,6 +23,11 @@
|
||||
return [[self alloc] initWithType:@"*"];
|
||||
}
|
||||
|
||||
+ (instancetype)selectorForType:(NSString *)type
|
||||
{
|
||||
return [[self alloc] initWithType:type];
|
||||
}
|
||||
|
||||
- (instancetype)initWithType:(NSString *)type
|
||||
{
|
||||
self = [super init];
|
||||
|
||||
Reference in New Issue
Block a user