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: Cocoa GUI app invocation from CLI with arguments



On 3/31/08, Jean-Daniel Dupas <email@hidden> wrote:
>
>  You can get cli arguments at anytime using NSProcessInfo.
>
>  - [[NSProcessInfo processInfo] arguments];

Awesome! This looks to be a much better method than parsing argv
inside main before calling NSApplicationMain, which is what I've
always done. Thanks!
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Cocoa GUI app invocation from CLI with arguments (From: "Mac QA" <email@hidden>)
 >Re: Cocoa GUI app invocation from CLI with arguments (From: Jean-Daniel Dupas <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.