• 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: Automatic operation at application statup - once for each instance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Automatic operation at application statup - once for each instance (From: François Reboursier <email@hidden>)
 >Re: Automatic operation at application statup - once for each instance (From: Doug Andrews <email@hidden>)
 >Re: Automatic operation at application statup - once for each instance (From: François Reboursier <email@hidden>)
 >Re: Automatic operation at application statup - once for each instance (From: Mark Morris <email@hidden>)
 >Re: Automatic operation at application statup - once for each instance (From: "Jerry W. Walker" <email@hidden>)

  • Prev by Date: Re: Customizing the EOSortOrdering
  • Next by Date: Re: MySQL JDBC connection
  • Previous by thread: Re: Automatic operation at application statup - once for each instance
  • Next by thread: Deployment error not in Dev?
  • Index(es):
    • Date
    • Thread