why I got wrong arguments from command-line
why I got wrong arguments from command-line
- Subject: why I got wrong arguments from command-line
- From: Haibin Liu <email@hidden>
- Date: Tue, 29 Mar 2011 22:55:45 +0800
1.double click to start my application (no additional command-line
arguments).
2.and start application from command-line with additional arguments.
3.i got wrong arguments
NSArray * argvs = [[NSProcessInfo processInfo] arguments];
argvs = (
"/Users/sara/studio/client/bin/Debug/Test.app/Contents/MacOS/Test",
"-psn_0_2392648"
)
"psn_0_2392648" is not expected.
i will got perfect result without step 1.
it make me confused.
--
刘海滨
_______________________________________________
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