Hi there,

On 24/03/2006, at 1:13 AM, Jerry W. Walker wrote:

Hi, François and Mark,

Actually, I think WO allows either the old NeXTStep defaults form:

  -mainInstance YES

or the newer Java Properties form:

  -DmainInstance=true

you ought to quote the whole thing in JavaMonitor as follows:
"-DmainInstance=true" rather than -DmainInstance="true".

but I think you have to follow the conventions for either side all the way through. That is, for the Java form:

  * prefix the argument with "-D"

  * separate the key from the value with "=" and no spaces

* use "true" or "false" for boolean values (I think the uppercase equivalents are OK as well, but not sure)

The NeXT equivalents (YES, NO) are just as exceptible for this style.

Either case is handled by NSPropertyListSerialization.booleanForString (str);

In general, I think the Java Property form for arguments is safer because the other form may be deprecated someday.

Though some of us hope that Objective-C/EOF will make a come-back by WO5.4 :-)

with regards,
--

Lachlan Deck


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to