Re: Accessing System default sounds
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