Я создал простое приложение Cocoa (Mac OS X 10.6), и появилась точка входа:
int main(int argc, char *argv[])
{
return NSApplicationMain(argc, (const char **) argv);
}
и манекен AppDelegate:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
// how to get argc and argv?
}
и некоторые другие. Как я могу правильно передать argc и argv в свой AppDelegate?