Re: why I got wrong arguments from command-line
Re: why I got wrong arguments from command-line
- Subject: Re: why I got wrong arguments from command-line
- From: "Stephen J. Butler" <email@hidden>
- Date: Tue, 29 Mar 2011 21:42:16 -0500
On Tue, Mar 29, 2011 at 9:55 AM, Haibin Liu <email@hidden> wrote:
> NSArray * argvs = [[NSProcessInfo processInfo] arguments];
> argvs = (
> "/Users/sara/studio/client/bin/Debug/Test.app/Contents/MacOS/Test",
> "-psn_0_2392648"
> )
The -psn_* argument is added by launch services. You'll have to code
your app to ignore it.
_______________________________________________
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