• 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: Fri, 28 Oct 2005 10:44:11 -0400
  • Organization: Rogue Research

On 2005-10-27 20:45, Gregory Weston said:

>> Better than hardcoding those paths is to use APIs like FSFindFolder
>> () in
>> Folders.h.  That provides protection against Apple renaming the paths.
>
>Possibly even better:
>
>NSArray* libs = NSSearchPathForDirectoriesInDomains
>(NSLibraryDirectory, NSUserDomainMask | NSLocalDomainMask |
>NSSystemDomainMask, YES);

I really wish Cocoa had a nice API that did what FindFolder does, but
NSSearchPathForDirectoriesInDomains doesn't seem to be it.  A quick
comparison of Folders.h and NSPathUtilities.h shows that the latter is
missing tonnes and tonnes of constants for all kinds of standard
folders, and yet it has seemingly nonsensical ones, like:

NSDemoApplicationDirectory,		// unsupported applications, demonstration
versions (Demos)
NSAllApplicationsDirectory = 100,	// all directories where applications
can occur

What the heck are these?  Especially that last one, can't apps be
anywhere still? :)

--
____________________________________________________________
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: 
 >Re: List of AppKit NSSound names (From: Gregory Weston <email@hidden>)

  • Prev by Date: another combo box question
  • Next by Date: Re: An OutlineView with Finder Editing Behavior
  • Previous by thread: Re: List of AppKit NSSound names
  • Next by thread: Re: List of AppKit NSSound names
  • Index(es):
    • Date
    • Thread