On Jun 10, 2008, at 4:21 AM, Ken Tozier wrote:

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?

Don't directly delete them from the preferences. Use +[NSWindow removeFrameUsingName:] which is designed for exactly this purpose.

Cheers,
Ken
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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