• 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
Re: why I got wrong arguments from command-line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >why I got wrong arguments from command-line (From: Haibin Liu <email@hidden>)

  • Prev by Date: NSObject Category Issue on iOS
  • Next by Date: Re: Automatic graphics switching...
  • Previous by thread: why I got wrong arguments from command-line
  • Next by thread: Re: why I got wrong arguments from command-line
  • Index(es):
    • Date
    • Thread