Created
April 25, 2014 00:44
-
-
Save wess/11274402 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Root Class | |
@interface Root : NSObject | |
@end | |
@implementation Root | |
static NSString *const SelectorSuffix = @":"; | |
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector | |
{ | |
NSMethodSignature *signature = [super methodSignatureForSelector:aSelector]; | |
// Not called. | |
return signature; | |
} | |
- (void)forwardInvocation:(NSInvocation *)anInvocation | |
{ | |
// Of course not called. | |
} | |
@end | |
@interface SubRoot : Root | |
@property (strong, nonatomic) id object; | |
@end | |
@implementation SubRoot | |
- (id)object | |
{ | |
NSString *blah = @"hello world"; | |
return blah; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment