Re: Using CLI arguments in controller (scoping?)
Re: Using CLI arguments in controller (scoping?)
- Subject: Re: Using CLI arguments in controller (scoping?)
- From: Damien Bobillot <email@hidden>
- Date: Sat, 13 May 2006 10:58:27 +0200
Mike Blaguszewski wrote :
On May 12, 2006, at 4:37 PM, Andrew Pouliot wrote:
I'm trying to get options specified on the command line to be
visible in my controller class
-[NSProcessInfo arguments]
Also, be aware that launching from the Finder will pass the process
serial number as an arg, so you'll probably need to handle that case.
There's another solution : if you have an argument like "-Some"
"thing", the Some element of NSUserDefault will get the value
"thing". It allows you to store this argument in your application's
preference property list, and override it when you need by specifying
it on the command line.
--
Damien Bobillot
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden