• 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: Where are window prefs stored?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where are window prefs stored?


  • Subject: Re: Where are window prefs stored?
  • From: Matt Gough <email@hidden>
  • Date: Tue, 10 Jun 2008 11:33:53 +0200

 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@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


References: 
 >Where are window prefs stored? (From: Ken Tozier <email@hidden>)

  • Prev by Date: Where are window prefs stored?
  • Next by Date: from CFDataRef to NSString
  • Previous by thread: Where are window prefs stored?
  • Next by thread: Re: Where are window prefs stored?
  • Index(es):
    • Date
    • Thread