Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import <Foundation/Foundation.h>
- @interface Foo : NSObject {
- }
- - (void)test:(NSString *)one, NSString *two;
- @end
- @implementation Foo
- - (void)test:(NSString *)one, NSString *two {
- printf("1: %s\n2: %s\n", [one UTF8String], [two UTF8String]);
- }
- @end
- int main() {
- NSAutoreleasePool *pool = [NSAutoreleasePool new];
- Foo *foo = [Foo new];
- [foo test:@"One", @"Two"];
- printf("Done\n");
- [foo release];
- [pool release];
- return 0;
- }
Add Comment
Please, Sign In to add comment