Re: to get volume mount/unmount notification
Re: to get volume mount/unmount notification
- Subject: Re: to get volume mount/unmount notification
- From: "I. Savant" <email@hidden>
- Date: Tue, 27 May 2008 08:41:39 -0400
I wish to be notified whenever any volume(s) gets unmounted or
mounted.
I gather I'll have to use NSWorkspace for that.
So how to go about it?
Register one of your controllers for
"NSWorkspaceDidMountNotification" and / or
"NSWorkspaceDidUnmountNotification" notification and handle it when it
comes in.
See "Notification Programming Topics":
http://developer.apple.com/documentation/Cocoa/Conceptual/Notifications/Introduction/introNotifications.html
--
I.S.
_______________________________________________
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