• 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: creating plist, reading too
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating plist, reading too


  • Subject: Re: creating plist, reading too
  • From: Jonathan Jackel <email@hidden>
  • Date: Sat, 17 Jan 2004 19:47:37 -0500

You can read/write dictionaries from/to file (so long as the objects
and keys can be represented in plist form (NSData, NSDate, NSNumber,
NSString, NSArray, or NSDictionary objects)). Check the docs for
NSDictionary (writeToFile:atomically: and
dictionaryWithContentsOfFile:). However, you probably ought to get
familiar with NSUserDefaults and the NSUserDefaultsController before
you commit to rolling your own preferences system.

Jonathan

On Jan 17, 2004, at 10:34 AM, Matt Jaffa wrote:

> Hi,
>
> I'm trying to develop an application right now, and it is going to
> use a .plist
> for all the different settings/preferences etc.
>
> Im new to this, so How do i read in from a plist, is there already a
> made parser.
> Also how do i write to one?
>
> Does it use a Dictionary to do stuff like this.
>
> I am using the CoreFoundation, I was wondering if the Core Foundation
> has some api that will do this for you.
>
> Thanks,
> Matt
> _______________________________________________
> 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.

References: 
 >Re: Saving "objects" & opening them up in a non-document based App (From: Aaron Boothello <email@hidden>)
 >creating plist, reading too (From: Matt Jaffa <email@hidden>)

  • Prev by Date: Re: am i leaking memory
  • Next by Date: Re: NSTableView: adding data
  • Previous by thread: creating plist, reading too
  • Next by thread: Re: creating plist, reading too
  • Index(es):
    • Date
    • Thread