• 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: "deviceTypeForPath:"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "deviceTypeForPath:"


  • Subject: Re: "deviceTypeForPath:"
  • From: email@hidden
  • Date: Fri, 28 Dec 2007 08:31:33 -0500

I'm not aware of a Cocoa API, but it sounds like the DiskArbitration framework is what you need. Specifically, a disk's description should include all the information you are looking for. DiskArbitration uses CoreFoundation objects so the syntax and semantics should be familiar, and some of the data types are toll-free bridged with their Cocoa counterparts. Leopard includes framework documentation in Xcode's documentation, but if you are on Tiger the header files in the framework and well-documented in HeaderDoc format.

Aaron

On Dec 27, 2007, at 6:11 PM, Dominik Pich wrote:

Hi,
I watch for the NSWorkspaceDidMount and Unmount notifications to see which devices there are. All working good.


Except now I want to find out WHAT gets mounted... e.g. a CD, a DMG, a Network drive, an external HD.

I do get pretty icons from NSWorkspace already :) So.. is there a nice cocoa way..... kinda like a: "deviceTypeForPath:"?

_______________________________________________

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: 
 >"deviceTypeForPath:" (From: Dominik Pich <email@hidden>)

  • Prev by Date: Re: Predicates
  • Next by Date: Binding and NSToolbarItem in Leopard Interface Builder
  • Previous by thread: "deviceTypeForPath:"
  • Next by thread: Binding and NSToolbarItem in Leopard Interface Builder
  • Index(es):
    • Date
    • Thread