• 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: Transferring data between Python and Cocoa (maybe a newbie question)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Transferring data between Python and Cocoa (maybe a newbie question) (From: "Ritesh Nadhani" <email@hidden>)
 >Re: Transferring data between Python and Cocoa (maybe a newbie question) (From: Nir Soffer <email@hidden>)
 >Re: Transferring data between Python and Cocoa (maybe a newbie question) (From: "Ritesh Nadhani" <email@hidden>)

  • Prev by Date: Re: Server Address from Mounted SMB Volume
  • Next by Date: Re: Bug in CF/NSString's no-copy constructors (was Re: Use of Mac OS X 10.5 / Leopards Garbage Collection Considered Harmful)
  • Previous by thread: Re: Transferring data between Python and Cocoa (maybe a newbie question)
  • Next by thread: Preventing NSTextView sending -setColor: to NSColorPanel?
  • Index(es):
    • Date
    • Thread