Hi List,

can someone confirm that NSPropertyListSerialization changed its behavior in 5.4?

In 5.3 dictionaryForString(String value) returned every value as String:
<true />
<integer>123</integer>
<date>2007-12-24 18:00:00.00 MET</date>

Since 5.4 it changed behavior to interpret the values as I had expected it long ago:
<true /> becomes Boolean
<integer>123</integer> becomes BigInteger (why Big?)
<date>2007-12-24 18:00:00.00 MET</date> becomes NSTimestamp

So be aware that this might break your apps if you depend on parsing values yourself. I used Boolean.valueOf((String)aPListObject) which breaks with 5.4 (CCE).


        atze

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to