This task explains how to track available storage devices and their associated volumes.
NSWorkspace provides several methods for tracking the status of storage devices:
To retrieve the names of local mounted volumes,
use the mountedRemovableMedia and mountedLocalVolumePaths methods.
To wait until new removable devices have been mounted and
then retrieve their pathnames, use the mountNewRemovableMedia method.
Also, to retrieve the Finder display names for volumes, use
NSFileManagerâÂÂs displayNameAtPath: method.
© 2002, 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-03-06)