Amusingly, when you register an unmount or eject approval function with DiskArbitration, that function gets invoked *after* NSWorkspace sends its didUnmount notification. How's that for a lead-in anecdote?

So anyway, I'm looking to react to the imminent or even potential departure of a volume. Some way I can know that a volume will (or probably will) be taken away from me in the near future but with enough lead time that I can reliably make one or two quick function calls against it. Any thoughts? I'm not worried about abrupt disconnects like the user yanking the cable on an external drive. Just looking for the tiniest smidgen of warning for orderly unmounts.

Specifically, I'm looking for the opportunity to call FSGetCatalogInfo on the mount point and then FSGetVolumeInfo on the volume reference number I got back from the first call.

Greg
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to