Where do you save preferences?

Richard Gaskin ambassador at fourthworld.com
Sat Jun 16 20:20:53 EDT 2012


Peter Haworth wrote:
> Surprisingly, the Mac App Store will get rejected if you put stuff in the
> users home/Preferences folder.

I believe the difference there is installation vs. runtime.

The OS X HIG clearly notes that files in the Preferences folder is for 
user-generated data.  As such, your app should never need to install 
anything there, but of course will need to write there at runtime when 
the user makes changes in your app's Preferences window.

If you need to install data for your app in a user-writable folder, the 
HIG suggests using the Application Data folder for that.

In short, the Preferences folder is the same as it's always been, with 
the Application Support folder also available for non-user-generated 
data.  AFAIK, the only difference now is that Apple is finally enforcing 
the guidelines they've been publishing for the last decade.

--
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  Follow me on Twitter:  http://twitter.com/FourthWorldSys




More information about the use-livecode mailing list