• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
why I got wrong arguments from command-line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: why I got wrong arguments from command-line
      • From: Sean McBride <email@hidden>
    • Re: why I got wrong arguments from command-line
      • From: "Stephen J. Butler" <email@hidden>
  • Prev by Date: Re: Distribution via DMG fails
  • Next by Date: Customize Views Created Within Interface Builder
  • Previous by thread: Re: Binding tablecolumn to attribute of specific object in to-many relationship?
  • Next by thread: Re: why I got wrong arguments from command-line
  • Index(es):
    • Date
    • Thread