Re: NSApplicationMain arguments
Re: NSApplicationMain arguments
- Subject: Re: NSApplicationMain arguments
- From: Michael Vannorsdel <email@hidden>
- Date: Fri, 11 Apr 2008 20:15:38 -0600
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@hidden 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 (email@hidden)
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:
This email sent to email@hidden