Check out NSProcessInfo. The class has a -(NSArrary *)arguments method that may 
be of some interest.


On Aug 16, 2011, at 10:54 AM, Abdul Sowayan wrote:

> Hi folks,
> 
> If I launch my app from the command line, I can pass it options like this
> (this would be the argc, argv parameters to main):
> 
> ./Foo.app/Contents/MacOS/Foo -ApplePersistenceIgnoreState YES
> 
> 
> What I would like to have is launch my application from the GUI and somehow
> pass the command line parameters to it. If I had to guess, this would be
> encoded in the Info.plist file in the bundle. It is not clear to me how to
> do that. Any feedback would be greatly appreciated.
> 
> Thanks,
> Abdul

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to