Another thing you can do (for debugging, if nothing else)
is to just run the "mount" Unix command.  This gives you
a quick list of everything you should expect to find
through the APIs.

For instance:

% mount
/dev/disk1s9 on / (hfs, local, journaled)
devfs on /dev (devfs, local)
fdesc on /dev (fdesc, union)
map -hosts on /net (autofs, automounted)
map auto_home on /home (autofs, automounted)
/dev/disk2 on /Volumes/RAID (hfs, local, journaled)
/dev/disk0s7 on /Volumes/Lower (hfs, local, journaled)
http://idisk.mac.com/myuserid/ on /Volumes/myuserid (webdav, nodev, noexec, nosuid, mounted by kevin)


Kevin G.


Take a look at NSWorkspace, especially its -mountedLocalVolumePaths and -mountedRemovableMedia methods, as well as its NSWorkspaceDidMountNotification and NSWorkspaceDidUnmountNotification notifications.

For more in-depth information without delving into IOKit, check out the Disk Arbitration Framework. The documentation is largely in the headers, though.

That is exactly the information I needed. Many thanks. Now I need to work out how I've failed to find that after lots of searching both of the SDK and of the web!

Once again, thanks.

Neil.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to