• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Accessible disks? Opinions requested.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Accessible disks? Opinions requested. (From: Neil Brewitt <email@hidden>)
 >Re: Accessible disks? Opinions requested. (From: Ken Thomases <email@hidden>)
 >Re: Accessible disks? Opinions requested. (From: Neil Brewitt <email@hidden>)

  • Prev by Date: Re: Making use of a static library?
  • Next by Date: Re: Making use of a static library?
  • Previous by thread: Re: Accessible disks? Opinions requested.
  • Next by thread: Re: Accessible disks? Opinions requested.
  • Index(es):
    • Date
    • Thread