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

Re: plist support


  • Subject: Re: plist support
  • From: Art Isbell <email@hidden>
  • Date: Tue, 21 Jun 2005 11:48:39 -1000

On Jun 21, 2005, at 11:17 AM, Chuck Hill wrote:

If you need lists for a given key, then you need plists not the standard
Java properties file.

Because Java properties files contain key-value pairs of strings, and because plists have string representations, you can include a list as a value in a Java properties file:


foo=(bar, baz, bam)

Then after the property's value is read in as a String, it can be converted to an NSArray using

com.webobjects.foundation.NSPropertyListSerialization.propertyListFrom String
(plistString);

String representations of dictionary plists can also be included as values in properties files, but this gets more messy.


Aloha,
Art

_______________________________________________
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


  • Follow-Ups:
    • Re: plist support
      • From: Joe Little <email@hidden>
References: 
 >Re: plist support (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: plist support
  • Next by Date: Re: plist support
  • Previous by thread: Re: plist support
  • Next by thread: Re: plist support
  • Index(es):
    • Date
    • Thread