Skip to content

Instantly share code, notes, and snippets.

@kylesluder
Created August 5, 2010 00:15
Show Gist options
  • Save kylesluder/509014 to your computer and use it in GitHub Desktop.
Save kylesluder/509014 to your computer and use it in GitHub Desktop.
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
#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