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: "Justin C. Walker" <email@hidden>
- Date: Tue, 05 Apr 2011 16:29:06 -0700
On Apr 5, 2011, at 16:06 , Christiaan Hofman wrote:
> On Apr 6, 2011, at 0:53, Justin C. Walker wrote:
>>
>> On Apr 5, 2011, at 15:30 , Christiaan Hofman wrote:
[snip]
>> I think you are assuming that "-boolean" means that the following argument "is" a boolean (whatever that is). In fact, it is just a mechanism to tell the tool how interpret the string that follows (in this case, one of the strings "YES", "NO", "TRUE", or "FALSE"; and only these are permitted).
>
> Well, yes, that's what I am saying...
>
>> It does not mean that the following value is going to be either a (binary) 0 or 1.
>>
>
> .. and I'm most definitely not saying or implying anything like that.
OK, I'm just trying to get a handle on what you are asking.
>> The shell only passes the distinct character sequences that you type in the CLI to the invoked command, *as strings*, via (one of) the exec() calls.
> I am not talking about what the shell does. I am talking about how (or whether) app executables have a way to interpret command line arguments. So I am not talking about the *shell* interpreting arguments as something different than strings (I am well aware that it's not doing that), I am talking about the *app* to interpret them as (C/Cocoa) objects that are not strings.
I guess I am still not clear about this.
When the (CLI) app gets control, all it has as input arguments are strings. As in the "defaults" case, it takes some cue to the program (or agreement between user and program) regarding how those arguments are handled, but there is no way (that I am aware of) for the app to treat them, as given, as C/Cocoa objects, unless the program itself *translates* the strings to objects.
Does this answer your question, or am I still missing your point?
Justin
--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
-----------
My wife 'n kids 'n dogs are gone,
I can't get Jesus on the phone,
But Ol' Milwaukee's Best is my best friend.
-----------
_______________________________________________
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