Guest User

Untitled

a guest
Jul 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #import <Foundation/Foundation.h>
  2.  
  3. @interface Foo : NSObject {
  4. }
  5. - (void)test:(NSString *)one, NSString *two;
  6. @end
  7.  
  8. @implementation Foo
  9. - (void)test:(NSString *)one, NSString *two {
  10. printf("1: %s\n2: %s\n", [one UTF8String], [two UTF8String]);
  11. }
  12. @end
  13.  
  14. int main() {
  15. NSAutoreleasePool *pool = [NSAutoreleasePool new];
  16. Foo *foo = [Foo new];
  17. [foo test:@"One", @"Two"];
  18. printf("Done\n");
  19. [foo release];
  20. [pool release];
  21. return 0;
  22. }
Add Comment
Please, Sign In to add comment