Re: plist support
Re: plist support
- Subject: Re: plist support
- From: Joe Little <email@hidden>
- Date: Tue, 21 Jun 2005 15:07:19 -0700
(answering all at once) Yes, I knew about getprops and java
properties. The missing link was NSPropertyListSerialization as many
have pointed out. The trick is to get an easily readable configuration
file format that supports lists, and plist was what I was going for.
It appears from Art's comments that I can still achieve this with the
java properties file.
Thanks all around
On 6/21/05, Art Isbell <email@hidden> wrote:
> 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
>
_______________________________________________
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