Re: Accessible disks? Opinions requested.
Re: Accessible disks? Opinions requested.
- Subject: Re: Accessible disks? Opinions requested.
- From: Kevin Grant <email@hidden>
- Date: Wed, 11 Jun 2008 19:59:43 -0500
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 (email@hidden)
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:
This email sent to email@hidden