Re: plist support
Re: plist support
- Subject: Re: plist support
- From: Kieran Kelleher <email@hidden>
- Date: Tue, 21 Jun 2005 19:30:34 -0400
IIRC, look at Project Wonder's Excel Generator framework and you will
find an example of where the developer (Anjo Krank if I'm not mistaken)
reads in plist files for Excel cell styles.
-Kieran
________________________________________________________________
Blog: http://webobjects.webhop.org/
On Jun 21, 2005, at 6:07 PM, Joe Little wrote:
(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.propertyListFro
m
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:
email@hidden
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:
email@hidden
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