• 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: 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.

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: speed of alloc/init for NSNumber
  • Next by Date: Symbol and MathType Fonts
  • Previous by thread: Re: creating plist, reading too
  • Next by thread: Flipped coordinates for compositeToPoint:?
  • Index(es):
    • Date
    • Thread