• 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: Application Properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Application Properties


  • Subject: Re: Application Properties
  • From: Goodbye Bill <email@hidden>
  • Date: Fri, 11 Jul 2003 01:25:28 -0400

Let me try to clarify this.  Here is the contents of my Properties file...

    # Add application properties here

    # These properties are loaded into the Java system properties for the
    application
    # These properties may be overridden at the command-line
    # The properties listed are only examples, and are not intended to be
    comprehensive
    # Remove the leading '#' to uncomment a property

    #WOAutoOpenInBrowser=true
    #WOAutoOpenClientApplication=true
    #WOPort=55555
    #WODebuggingEnabled=true
    #WODirectConnectEnabled=true
    #WOAllowRapidTurnaround=true
    #WOSessionTimeOut=3600
    #WOAllowsConcurrentRequestHandling=false

    MySMTPHostName="smtp.nowhere.com"
    MySMTPFromAddr="email@hidden"
    MySMTPAccount="noreply"
    MySMTPPassword="password"

As you can see, I have added my own properties to the file.  Is there any
way to simply call the properties that are in this file?  Maybe something
like... Application("propertyname").toString()

Thanks,
"Bill"


On 7/10/03 2:40 PM, "Art Isbell" <email@hidden> wrote:

> On Thursday, July 10, 2003, at 05:52  AM, Cliff Tuel wrote:
>
>>> Is it possible to add custom (non-WebObjects) properties in the
>>> Properties
>>> file?  If so, what is the syntax to access them at runtime?
>>
>> Syntax: see java.io.Properties
>> API: see com.webobjects.foundation.NSProperties
>
> And by taking advantage of
> com.webobjects.foundation.NSPropertyListSerialization, you can extend
> Properties from supporting only string data to to supporting arrays and
> dictionaries in ASCII plist format
> (http://developer.apple.com/documentation/Cocoa/Conceptual/
> PropertyLists/Concepts/OldStylePListsConcept.html#//apple_ref/doc/uid/
> 20001012/BBCBDBJE).
>
> Aloha,
> Art
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Application Properties
      • From: email@hidden (Anjo Krank)
References: 
 >Re: Application Properties (From: Art Isbell <email@hidden>)

  • Prev by Date: Re: Web Services (Ideas Needed)
  • Next by Date: Re: Application Properties
  • Previous by thread: Re: Application Properties
  • Next by thread: Re: Application Properties
  • Index(es):
    • Date
    • Thread