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: 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