Re: creating plist, reading too
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.