Re: Help on startup volume name and NSEvent characters
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.