Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @interface Test1 : NSObject
- - (void)setObject:(id)obj;
- - (id)getPointer;
- - (void)setFloat:(float)singleFloat;
- @end
- @interface Test2 : NSObject
- - (void)setObject:(NSObject *)obj;
- - (void *)getPointer;
- - (void)setFloat:(CGFloat)maybeDoubleFloat;
- @end
- @implementation Test1
- -(id)getPointer
- {
- return nil;
- }
- - (void)selectorTestOn:(id)ambiguous
- {
- NSObject *input = [NSObject new];
- [ambiguous performSelector:@selector(objectsMatching:) withObject:input];
- [ambiguous performSelector:@selector(getPointer) withObject:nil];
- [ambiguous performSelector:@selector(setFloat:) withObject:0];
- }
- -(void)setObject:(id)obj
- {
- }
- -(void)setFloat:(float)singleFloat
- {
- }
- @end
- @implementation Test2
- -(void *)getPointer
- {
- return nil;
- }
- -(void)setObject:(NSObject *)obj
- {
- }
- -(void)setFloat:(CGFloat)maybeDoubleFloat
- {
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement