• 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: Getting a list of system sounds, etc.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Getting a list of system sounds, etc. (From: Evan Gross <email@hidden>)

  • Prev by Date: Where's classic's system folder ?
  • Next by Date: Re: Distorted System Sounds
  • Previous by thread: Re: Getting a list of system sounds, etc.
  • Next by thread: Perry Gregg Cross Platform Programmer Available
  • Index(es):
    • Date
    • Thread