Pages

Subscribe:

Ads 468x60px

Tuesday, December 21, 2010

Hello World in Objective C

#import <Foundation/Foundation.h>

int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

    // insert code here...
    NSLog(@"Hello, World!");
    [pool drain];
    return 0;
}

0 comments:

Post a Comment