• 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: Deserialze to NSDictionary with proper type?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deserialze to NSDictionary with proper type?


  • Subject: Re: Deserialze to NSDictionary with proper type?
  • From: Jacky Gagnon <email@hidden>
  • Date: Mon, 21 Mar 2005 11:27:09 -0500

Hi,

Le 05-03-21, à 04:07, Daniel Muller a écrit :

Hello,

I'm wondering how to de-serialize a plist file (xml
format) to a NSDictionary with the proper type for all
the simple keys. It seems
NSPropertyListSerialization.dictionaryForString or
NSPropertyListSerialization.propertyListFromString
creates a NSDictionary with a String type for all
simple keys instead of Number, Date or Boolean, even
if the keys are <integer>, <real>, <date> or
<boolean>.

Any idea how to get the proper type while
de-serializing a property list file in a dictionary?

Plist de-serializzation treats values like <integer>, <real>, <date> or <boolean> as String.
You must implement methods to convert these String to other types if you want to use the plist format.


 Jacky


Thanks, Daniel









__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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
References: 
 >Deserialze to NSDictionary with proper type? (From: Daniel Muller <email@hidden>)

  • Prev by Date: Trick to implementing NSKeyValueCoding?
  • Next by Date: Re: Java Developer Community on Mac OS X
  • Previous by thread: Deserialze to NSDictionary with proper type?
  • Next by thread: Re: Deserialze to NSDictionary with proper type?
  • Index(es):
    • Date
    • Thread