• 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: Accessing System default sounds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing System default sounds


  • Subject: Re: Accessing System default sounds
  • From: Mike Blaguszewski <email@hidden>
  • Date: Tue, 30 May 2006 15:26:56 -0400


On May 30, 2006, at 2:51 PM, Jordan Krushen wrote:

On 5/30/06, Andrew Farmer <email@hidden> wrote:

The default alert sounds are located in /System/Library/Sounds. If
you're going to include the contents of this directory, though, make
sure to also include $HOME/Library/Sounds, if it exists - the user
may have installed their own sounds there.

That sounds like extra work for nothing -- don't duplicate (or traverse) system sound directories in your app. Sound files in the app bundle, /Library/Sounds and ~/Library/Sounds all get searched automatically using +[NSSound soundNamed:].

I think the original poster wanted to display a list of all system sounds, for the user to pick from. I know of no way to do this short of manually traversing the three standard sound directories with NSDirectoryEnumerator.


--
Mike Blaguszewski / Cocoa Hacker / Ambrosia Software, Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Accessing System default sounds
      • From: "Jordan Krushen" <email@hidden>
References: 
 >Accessing System default sounds (From: Apparao <email@hidden>)
 >Re: Accessing System default sounds (From: Andrew Farmer <email@hidden>)
 >Re: Accessing System default sounds (From: "Jordan Krushen" <email@hidden>)

  • Prev by Date: Changing from Java to OBJ-C
  • Next by Date: NSWorkspace launchApplication: vs NSAppleScript
  • Previous by thread: Re: Accessing System default sounds
  • Next by thread: Re: Accessing System default sounds
  • Index(es):
    • Date
    • Thread