Fwd: Passing non-string user defaults through command line arguments
Fwd: Passing non-string user defaults through command line arguments
- Subject: Fwd: Passing non-string user defaults through command line arguments
- From: Chris Suter <email@hidden>
- Date: Wed, 06 Apr 2011 09:16:06 +1000
Sorry, I meant to send this to the list
---------- Forwarded message ----------
Hi Christiaan,
On Wed, Apr 6, 2011 at 2:53 AM, Christiaan Hofman <email@hidden> wrote:
> Sometimes I want to test my app with a particular value for a user default.
> I do this by adding a command line argument (in the info for the executable
> in Xcode) for the user default key. This works for string values, however
> when the value needs to be something else (e.g. a boolean), I cannot get
> this to work. Is there a way to do this?
Yes.
// Using XML
-argument '<integer>1</integer>'
// Using old style (probably deprecated)
-argument '(one, two, three)'
And so on.
Kind regards,
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden