Re: Preferences file in Tiger
Re: Preferences file in Tiger
- Subject: Re: Preferences file in Tiger
- From: Ali Ozer <email@hidden>
- Date: Sun, 1 May 2005 23:06:17 -0700
Preferences files are now written in binary plist format, instead of XML. This change is for performance reasons. Use the NSUserDefaults or CFPreferences APIs to access preferences, since it will isolate you from changes like this. In shell scripts you can use the "defaults" command. The "plutil" command can also be used to convert binary plist files back to XML.Ali
Begin forwarded message: From: Pradeep Kumar <email@hidden> Date: May 1, 2005 1:50:36 PDT To: email@hidden Subject: Preferences file in Tiger Reply-To: Pradeep Kumar <email@hidden>
Hi The preferences file (files in ~/Library/Preferences) are in a very cryptic format when opened in TextEdit. In Panther and below, the file was a normal xml file. But now this file can be read only in Property List Editor. What has actually happeneded? I have this code that removes an item from the dock and quits it so that the changes are immediately reflected. This worked fine till Panther. But in Tiger it stopped working. However running it multiple times will eventually remove the item from the Dock. I have tried various calls like CFPreferencesAppSynchronize etc, but no avail. Has anyone faced this problem yet. What's the solution for this? Exactly what has changed in the preferences file? Is it safe to read the com.apple.dock.plist file and then make modifications and write it back? Thanks Prady -- prady
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden