Manipulating Devices
This task explains how to track available storage devices and their associated volumes.
Tracking Available Devices
NSWorkspace provides several methods for tracking the status of storage devices:
To retrieve the names of local mounted volumes, use the
mountedRemovableMediaandmountedLocalVolumePathsmethods.To wait until new removable devices have been mounted and then retrieve their pathnames, use the
mountNewRemovableMediamethod.
Also, to retrieve the Finder display names for volumes, use
NSFileManager’s displayNameAtPath: method.
Copyright © 2002, 2009 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2009-06-25