Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * hello world in Objective-C + Foundation framework.
- *
- * build:
- * % cc -Wall -g -framework Foundation hello.m
- */
- #import <Foundation/Foundation.h>
- int main(int argc, char *argv[])
- {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- NSString *str = [NSString stringWithFormat:@"hello world."];
- NSLog(@"%@", str);
- [pool release];
- return 0;}
Add Comment
Please, Sign In to add comment