Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to pass cmd line arguments to my carbon app?



On 13.09.2005 18:53, "Chris Espinosa" <email@hidden> wrote:

> 1) When the user double-clicks your app at runtime, it will pass the Carbon
> psn in argv[1].  You can't avoid this.  So your app must be written to be
> flexible about whether it's launched via LaunchServices or from a Unix launch
> command, because the arg list will be different.

  Also, there are some command line arguments used by frameworks, such as
"-AppleLanguages"... Admittedly, these are used pretty rarely, but a good
application shouldn't break because of extra arguments :)

- WBR, Alexey Proskuryakov


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: How to pass cmd line arguments to my carbon app? (From: Chris Espinosa <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.