Skip to content

Instantly share code, notes, and snippets.

@garethstokes
Created June 16, 2011 11:01
Show Gist options
  • Save garethstokes/1029048 to your computer and use it in GitHub Desktop.
Save garethstokes/1029048 to your computer and use it in GitHub Desktop.
hello objc
#import <Foundation/Foundation.h>
#import "HelloWorld.h"
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
// my stuff
HelloWorld *hw = [[HelloWorld alloc] init];
[hw autorelease];
[hw sayHello];
[pool release];
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment