• 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: getting a plist into a dictionary?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting a plist into a dictionary?


  • Subject: Re: getting a plist into a dictionary?
  • From: Scott Anguish <email@hidden>
  • Date: Thu, 18 Dec 2003 01:26:09 -0500

On Dec 17, 2003, at 11:41 PM, Charles Srstka wrote:

NSDictionary *dict = [NSDictionary dictionaryWithContentsOfFile:filePath];


that won't work because he's dealing with the data returned by an NSFileWrapper (wow, I've not looked at those in a long time!)

Or, look into the NSPropertyListSerialization class.


specifically

http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ ObjC_classic/Classes/NSPropertyListSerialztion.html#//apple_ref/doc/ uid/20000942/BAJIIGDC

+ propertyListFromData:mutabilityOption:format:errorDescription:
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: getting a plist into a dictionary?
      • From: Steve Christensen <email@hidden>
References: 
 >getting a plist into a dictionary? (From: Steve Christensen <email@hidden>)
 >Re: getting a plist into a dictionary? (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: Capturing stdout
  • Next by Date: id type in NSCoder
  • Previous by thread: Re: getting a plist into a dictionary?
  • Next by thread: Re: getting a plist into a dictionary?
  • Index(es):
    • Date
    • Thread