• 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: List of AppKit NSSound names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List of AppKit NSSound names


  • Subject: Re: List of AppKit NSSound names
  • From: "Sean McBride" <email@hidden>
  • Date: Thu, 27 Oct 2005 11:29:52 -0400
  • Organization: Rogue Research

On 2005-10-27 08:16, Ryan Britton said:

> From what I've found, there doesn't appear to be a way to query for
>a sounds list.  Here's the code I use to build a sound list:
>
>#define SystemLibrary() @"/System/Library/"
>#define AllUsersLibrary() @"/Library/"
>#define UserLibrary() [NSHomeDirectory()
>stringByAppendingPathComponent:@"Library/"]
>
>#define SoundsDirectory(base) [base
>stringByAppendingPathComponent:@"Sounds"]

Better than hardcoding those paths is to use APIs like FSFindFolder() in
Folders.h.  That provides protection against Apple renaming the paths.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
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

References: 
 >List of AppKit NSSound names (From: Tim Gogolin <email@hidden>)
 >Re: List of AppKit NSSound names (From: Ryan Britton <email@hidden>)

  • Prev by Date: Re: List of AppKit NSSound names
  • Next by Date: Re: Getting a list of all the applications available on the harddrive
  • Previous by thread: Re: List of AppKit NSSound names
  • Next by thread: Re: List of AppKit NSSound names
  • Index(es):
    • Date
    • Thread