• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Passing non-string user defaults through command line arguments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Passing non-string user defaults through command line arguments
      • From: Chris Suter <email@hidden>
References: 
 >Passing non-string user defaults through command line arguments (From: Christiaan Hofman <email@hidden>)
 >Fwd: Passing non-string user defaults through command line arguments (From: Chris Suter <email@hidden>)
 >Re: Passing non-string user defaults through command line arguments (From: "Justin C. Walker" <email@hidden>)
 >Re: Passing non-string user defaults through command line arguments (From: Christiaan Hofman <email@hidden>)

  • Prev by Date: Re: Passing non-string user defaults through command line arguments
  • Next by Date: Re: Passing non-string user defaults through command line arguments
  • Previous by thread: Re: Passing non-string user defaults through command line arguments
  • Next by thread: Re: Passing non-string user defaults through command line arguments
  • Index(es):
    • Date
    • Thread