Skip to content

Instantly share code, notes, and snippets.

@wess
Created April 25, 2014 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wess/11274402 to your computer and use it in GitHub Desktop.
Save wess/11274402 to your computer and use it in GitHub Desktop.
/// 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