Re: creating plist, reading too
Re: creating plist, reading too
- Subject: Re: creating plist, reading too
- From: Daryn <email@hidden>
- Date: Sun, 18 Jan 2004 15:31:54 -0600
If your goal is to have a document format that humans can easily grok
and edit, then you can use NSPropertyListSerialization to read and
write property lists. More complex documents may require the use
NSArchiver/NSKeyedArchiver, but these of course generate binary glop.
As others have pointed out, NSUserDefaults may be what you want. The
caveat is that the settings will not be transported with the document.
Depending on the nature of the settings, this may or may not be
appropriate behavior.
I hope this helps.
On Jan 17, 2004, at 9: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.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.