Guest User

Untitled

a guest
Feb 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. /*
  2. * hello world in Objective-C + Foundation framework.
  3. *
  4. * build:
  5. * % cc -Wall -g -framework Foundation hello.m
  6. */
  7.  
  8. #import <Foundation/Foundation.h>
  9.  
  10. int main(int argc, char *argv[])
  11. {
  12. NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
  13. NSString *str = [NSString stringWithFormat:@"hello world."];
  14. NSLog(@"%@", str);
  15. [pool release];
  16. return 0;}
Add Comment
Please, Sign In to add comment