-
-
Save kylesluder/509014 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
int main(int argc, char **argv) | |
{ | |
return 0; | |
} | |
#import <Foundation/Foundation.h> | |
@interface Foo : NSObject | |
-(id)newFoo; | |
@end | |
@implementation Foo | |
-(id)newFoo; | |
{ | |
return self; | |
} | |
@end |
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 Foo : NSObject | |
-(id)newFoo; | |
@end | |
@implementation Foo | |
-(id)newFoo; | |
{ | |
return self; | |
} | |
@end | |
int main(int argc, char **argv) | |
{ | |
return (int)[[[Foo alloc] init] newFoo]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment