• 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: Elementary NSUserDefaults Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Elementary NSUserDefaults Question


  • Subject: Re: Elementary NSUserDefaults Question
  • From: Charles Jenkins <email@hidden>
  • Date: Wed, 07 Dec 2016 11:24:24 -0500

Sean,

Originally I did store bookmarks back when my app allowed users to pick
background music from their music libraries. But I could find no way to
play bookmarked library music at a low background volume, so I abandoned
that and just began using a .wav file stored with the app’s resources. If
anyone knows how to play music from the library at a low volume, without
screwing up the system volume for other apps, e.g. Music.app, I’d love to
learn it.


On Wed, Dec 7, 2016 at 11:16 AM, Sean McBride <email@hidden>
wrote:

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



--

Charles
_______________________________________________

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


  • Follow-Ups:
    • Re: Elementary NSUserDefaults Question
      • From: Sean McBride <email@hidden>
    • Re: Elementary NSUserDefaults Question
      • From: Quincey Morris <email@hidden>
References: 
 >Elementary NSUserDefaults Question (From: Charles Jenkins <email@hidden>)
 >Re: Elementary NSUserDefaults Question (From: Sean McBride <email@hidden>)

  • Prev by Date: Re: Elementary NSUserDefaults Question
  • Next by Date: Re: UINavigationBar content margins in UIPresentationController subclass
  • Previous by thread: Re: Elementary NSUserDefaults Question
  • Next by thread: Re: Elementary NSUserDefaults Question
  • Index(es):
    • Date
    • Thread