Re: Passing non-string user defaults through command line arguments
Re: Passing non-string user defaults through command line arguments
- Subject: Re: Passing non-string user defaults through command line arguments
- From: Chris Suter <email@hidden>
- Date: Wed, 06 Apr 2011 09:56:21 +1000
Hi Christiaan,
On Wed, Apr 6, 2011 at 9:48 AM, Christiaan Hofman <email@hidden> wrote:
> Again, it's not about the type of the raw *shell* arguments. It's about how the *app* interprets the argument values as *Cocoa* objects. So I'm talking about NSArgumentDomain, not about the raw arguments.
>
> I find it very hard to find documentation on this. All I can find is a very short paragraph about NSArgumentDomain, which is in fact wrong (it says I can pass NO as a value, but that is not working in practice).
I don't recall how I knew about it; I used it in the past to test all
our apps with different languages (e.g. -AppleLanguages 'ja'). The
documentation is a bit thin, but all you need to know is that it
accepts XML or old-style property lists. It almost certainly will be
using the same parser that property lists use (which, if you’re
interested, is part of CoreFoundation and is open source).
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