• 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: Help on startup volume name and NSEvent characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help on startup volume name and NSEvent characters


  • Subject: Re: Help on startup volume name and NSEvent characters
  • From: Douglas Davidson <email@hidden>
  • Date: Fri, 5 Apr 2002 10:55:58 -0800

On Friday, April 5, 2002, at 06:01 AM, Jean Bovet wrote:

Can anyone tell me how to get the name of the startup volume ? I can get the
other volumes name via NSWorkspace mountedLocalVolumePaths call, but I
cannot get the name of the startup volume (other than "/").

Actually, NSWorkspace doesn't do volume names, only paths to their mount points. While many volumes currently happen to be mounted at /Volumes/<volume name>, that isn't necessarily true or true in general. For example, it isn't true if there are multiple volumes with the same name.

You can use NSFileManager's displayNameAtPath: to get the display name that the Finder would show for the volume, or you can use the Carbon File Manager to get any sort of information about the volume. Most of this information is probably also available via various BSD-level APIs.

Douglas Davidson
_______________________________________________
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: 
 >Help on startup volume name and NSEvent characters (From: Jean Bovet <email@hidden>)

  • Prev by Date: Re: Dynamic Languages [was: Re: why Obj-C]
  • Next by Date: Re: A Nib Question: Multiple Instantiations of Views
  • Previous by thread: Help on startup volume name and NSEvent characters
  • Next by thread: Re: Help on startup volume name and NSEvent characters
  • Index(es):
    • Date
    • Thread