Created
May 20, 2014 17:18
-
-
Save cmkilger/270ef43090d0ae625fdb to your computer and use it in GitHub Desktop.
This file contains 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
#import <Foundation/Foundation.h> | |
@interface SomeObject : NSObject | |
+ (void)classMethod; | |
@end | |
@implementation SomeObject | |
+ (void)classMethod { | |
NSLog(@"Hello World."); | |
} | |
- (id)forwardingTargetForSelector:(SEL)aSelector { | |
return [self class]; | |
} | |
@end | |
int main(int argc, char *argv[]) { | |
@autoreleasepool { | |
id anInstance = [[SomeObject alloc] init]; | |
[anInstance classMethod]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment