• 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: plist parsing in c
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: plist parsing in c


  • Subject: Re: plist parsing in c
  • From: Keith Duncan <email@hidden>
  • Date: Sun, 06 Jul 2008 20:12:28 +0100

Note that plist have 3 formats, text, xml, and binary.

That's true, but there's actually a bigger problem at hand here which I previously overlooked.


located inside the file /Library/Preferences/ com.apple.xgrid.agent.plist

I failed to pick this one up earlier, you shouldn't be assuming what format the preferences are written out in; in the future they might not even be in PLIST format. This is an implementation detail and much like how installer receipts have been migrated into a database; preferences might also be stored in a radically different format sometime soon.


The only reliable* way to access system preferences is through the CFPreferences API which NSUserDefaults is built on.

Keith Duncan
email@hidden, 33software.com

*remember that each preference domain is liable to change, they aren't public unless declared so
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: plist parsing in c
      • From: Sam Mo <email@hidden>
  • Prev by Date: Re: Key equivalents for an action without a visible object item
  • Next by Date: Re: Guidelines for Cocoa frameworks supporting garbage collection?
  • Previous by thread: Re: plist parsing in c
  • Next by thread: Re: plist parsing in c
  • Index(es):
    • Date
    • Thread