Re: Elementary NSUserDefaults Question
Re: Elementary NSUserDefaults Question
- Subject: Re: Elementary NSUserDefaults Question
- From: Sean McBride <email@hidden>
- Date: Wed, 07 Dec 2016 11:16:45 -0500
- Organization: Rogue Research Inc.
On Wed, 7 Dec 2016 10:25:46 -0500, Charles Jenkins said:
>When the app starts up, we call NSUserDefaults.standard.register( [ “bgm” :
><myfilename> ) to default to the real file name, so the user will hear
Charles,
It's also best practice not to store file names/paths, but instead to store "bookmarks". See NSURL's bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:.
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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