Re: Transferring data between Python and Cocoa (maybe a newbie question)
Re: Transferring data between Python and Cocoa (maybe a newbie question)
- Subject: Re: Transferring data between Python and Cocoa (maybe a newbie question)
- From: "Kyle Sluder" <email@hidden>
- Date: Wed, 6 Feb 2008 11:31:20 -0500
On Feb 6, 2008 10:57 AM, Ritesh Nadhani <email@hidden> wrote:
> Now back to reading documents on how to convert plist to Cocoa dictionary :)
A plist is whatever it is stored as (really). For example, if you use
+[NSPropertyListSerialization
propertyListFromData:mutabilityOption:format:errorDescription:], you
get an id back. But that id is really a pointer to an NSDictionary if
the root object of the plist is a dictionary, or an NSArray if the
root object is an array, etc. So you can quickly check [myPlist
class] to make sure it's what you're looking for and go.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden