Is it not possible to write to the user preference folder in Mojave?

Trevor DeVore lists at mangomultimedia.com
Tue Oct 30 14:12:37 EDT 2018


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



More information about the use-livecode mailing list