If all you need to do is get the command line arguments in Cocoa, you can do:
NSArray *arguments = [[NSProcessInfo processInfo] arguments];
If all you need to do is get the command line arguments in Cocoa, you can do:
NSArray *arguments = [[NSProcessInfo processInfo] arguments];