Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "deviceTypeForPath:"



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >"deviceTypeForPath:" (From: Dominik Pich <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.