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: to get volume mount/unmount events



Disk mounting and unmouting is managed by the DiskArbitration Framework.

http://developer.apple.com/documentation/Darwin/Reference/DiscArbitrationFramework/index.html

There is a bunch of DARegister* methods that allow you to listen mount/ unmount events.


Le 27 mai 08 à 14:05, Nick Rogers a écrit :

Hi,
for getting USB device insert/eject events I'm doing:

CFMutableDictionaryRef	classesToMatchUSBCasing;
classesToMatchUSBCasing = IOServiceMatching(kIOUSBDeviceClassName);

And then setting up the notification.
My question is can I use the same approach to get volume mount/ unmount events?
If yes then for that what shall I use in the second code line above?
Can I use IOServiceMatching()?
If yes then what constant shall I supply?


Wishes,
Nick

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >to get volume mount/unmount events (From: Nick Rogers <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.