Re: Automatic operation at application statup - once for each instance
Re: Automatic operation at application statup - once for each instance
- Subject: Re: Automatic operation at application statup - once for each instance
- From: Lachlan Deck <email@hidden>
- Date: Sat, 25 Mar 2006 09:38:24 +1100
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden