If you're using NSProccessInfo to get the args, then changing them at
runtime won't work as far as I know. The args are stored before main
is even called. I don't think passing args to NSApplicationMain has
any kind of effect.
Couldn't you just store your custom args in a global and access them
later when you need them?
On Apr 11, 2008, at 8:01 PM, [EMAIL PROTECTED] wrote:
I'm trying to add some launch arguments to my executable by modifying
the arguments passed to main.m, but find that the new arguments are
completely ignored. No matter what I pass to NSApplicationMain the
executable launches with the same old default argsv[]. Is this not the
right approach? Should I rather subclass NSApplication? If so, how?
Any help appreciated. Thanks.
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]