I have created the simple Cocoa application (Mac OS X 10.6) and there have appeared the entry point:
int main(int argc, char *argv[])
{
return NSApplicationMain(argc, (const char **) argv);
}
and AppDelegate
dummy:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
// how to get argc and argv?
}
and some other. How could I pass the argc and argv to my AppDelegate
right way?
Use
+[NSProcessInfo processInfo]
and-[NSProcessInfo arguments]
.In your application delegate,