Re: Preferences file in Tiger
Re: Preferences file in Tiger
- Subject: Re: Preferences file in Tiger
- From: Todd Blanchard <email@hidden>
- Date: Tue, 3 May 2005 07:19:40 -0700
How is "binary" plist different from "classic" plist (which I prefer and seemed about as small as you could make it, yet remained vi friendly)?
On May 1, 2005, at 11:06 PM, Ali Ozer wrote:
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
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
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