>
> The Apple Dev Docs say this about the /Library/Preferences/ folder:
>
> > You should not create files in this directory yourself. Instead, use the
> > NSUserDefaults class or CFPreferences API to get and set preference
> values
> > for your app.
>
> Use of NSUserDefaults has not yet been set up for LC apps. You should be
> okay to write there as long as the permissions are correct. You may have to
> use a terminal command to find out for sure what the permissions are or to
> change them using chmod or something.
>

Levure has a Preferences Helper that uses NSUserDefaults through an LCB
file in LC9 and an external in versions prior to LC9.

For those lucky souls using Levure you just have to activate the helper in
your project file. Others could grab the helper files from the Levure repo
and work them into their own project.

https://github.com/trevordevore/levure/tree/develop/framework/helpers/preferences

-- 
Trevor DeVore
ScreenSteps
www.screensteps.com
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to