• 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: Charles Srstka <email@hidden>
  • Date: Wed, 17 Dec 2003 22:41:32 -0600

NSDictionary *dict = [NSDictionary dictionaryWithContentsOfFile:filePath];

Or, look into the NSPropertyListSerialization class.

Charles

On Dec 17, 2003, at 10:22 PM, Steve Christensen wrote:

I'm playing with my document class's -loadFileWrapperRepresentation:ofType: method (the document is a package) and am getting stuck. Starting with the NSFileWrapper for the document, I have located the wrapper for the document's info.plist file. Once I have it, though, how can I take that wrapper's NSData and use it to generate a NSDictionary?

steve
_______________________________________________
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.
_______________________________________________
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: Scott Anguish <email@hidden>
References: 
 >getting a plist into a dictionary? (From: Steve Christensen <email@hidden>)

  • Prev by Date: getting a plist into a dictionary?
  • Next by Date: Moving a subview within a view.
  • Previous by thread: getting a plist into a dictionary?
  • Next by thread: Re: getting a plist into a dictionary?
  • Index(es):
    • Date
    • Thread