• 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: Howard Moon <email@hidden>
  • Date: Tue, 05 Apr 2011 16:59:21 -0700



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.

Ok, now you're talking about Cocoa (or at least Objective-C), not the general case. (My apps are C++ and Carbon, for example.) Apparently, that NSUserDefaults class does the work for you of interpreting the strings as integers or whatever. It's still being done in your code, just in the initialization of a specific Objective-C class. You might ask on the Cocoa-dev list (is that the correct list, folks?) to see if there's more info about the class(es) you can use for this, and their abilities and limitations.


-Howard


_______________________________________________ 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
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: xcode 4 documentation when offline
  • Previous by thread: Re: Passing non-string user defaults through command line arguments
  • Next by thread: using gdb 7.2 with xcode 3.2.5
  • Index(es):
    • Date
    • Thread