Re: Getting a list of system sounds, etc.
Re: Getting a list of system sounds, etc.
- Subject: Re: Getting a list of system sounds, etc.
- From: "Mike O'Connor" <email@hidden>
- Date: Sun, 14 Apr 2002 11:20:28 -0400
on 4/11/02 8:51 PM, Evan Gross at email@hidden wrote:
>
So, FWIW, I look in (using FSFindFolder and then enumerating the files and
>
adding the ones that match one of the types returned by +[NSSound
>
soundUnfilteredFileTypes]):
>
>
kUserDomain, kSystemSoundsFolderType then
>
kLocalDomain, kSystemSoundsFolderType then
>
kNetworkDomain, kSystemSoundsFolderType then
>
kSystemDomain, kSystemSoundsFolderType.
>
>
(always specifying kDontCreateFolder).
>
>
Not sure if I'm perhaps missing some domain that might contain sounds, but
>
this seems to do the trick.
Well I ended up using a variant of the code Stiphane gave in a prior
message. It wasn't difficult, but I feel funny about the fact that it
hardwires the directories to look in. I guess they aren't likely to change,
but I'd think it better if the system would give me the proper places to
look. For example, my code forgot to look for files in the network domain. I
guess your code helps a bit, but one could still forget to search a domain,
and what if Apple added one? [I can't imagine what it might be though...]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.