Re: Notification for mount / unmount
Re: Notification for mount / unmount
- Subject: Re: Notification for mount / unmount
- From: Nick Zitzmann <email@hidden>
- Date: Sat, 20 Aug 2005 15:09:22 -0600
On Aug 20, 2005, at 2:58 PM, Martin Hairer wrote:
Hi, I would like my app to be notified when a volume is mounted /
unmounted.
It turns out that it works fine (on Tiger at least) if I listen for
distributed notifications
of type "com.apple.sidebarlists.503.systemitems". However, this
doesn't seem to
be documented anywhere. So my questions are:
1. Is this the proper way of doing this?
2. Do I have some guarantee that this will work in future versions
of MacOS
despide the fact that it doesn't seem to be documented?
No and No.
3. If not, what is the proper way?
<file:///Developer/ADC Reference Library/documentation/Cocoa/
Reference/ApplicationKit/ObjC_classic/Classes/NSWorkspace.html#//
apple_ref/doc/uid/20000391-3572-BCIEFIDI>
You need to use the NSWorkspace notification manager to receive
NSWorkspace notifications.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden