10 Jun 2008, at 11:21, Ken Tozier wrote:

Hi

My app opens several palettes and uses the following line to store the palette positions

[[self window] setFrameAutosaveName: @"<palette name here>"];

I ran into a problem with the stored size and want to flush the old prefs and start over. Where are these types of prefs located and is it safe to just zap them?


Your prefs file will be in ~/Library/Preferences/<YOUR BUNDLE ID>.plist.

The window frame prefs are stored in the "NSWindow Frame <palette name here>" item.

It should be safe to either delete the entire prefs file or just the individual item.

If this is an already released product, it might be nicer to just rename your autosaveName to : e.g "<palette name> V2". That way if they run your old version, the old pref will still be valid for the version of the palette in the original key.

Dont worry about filling up your prefs with obsolete keys, its not a major drain on resources.

Mat
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to