Re: Finding out that a volume is going away before it does
Re: Finding out that a volume is going away before it does
- Subject: Re: Finding out that a volume is going away before it does
- From: Gregory Weston <email@hidden>
- Date: Mon, 27 Oct 2008 07:30:28 -0400
On Oct 27, 2008, at 4:37 AM, email@hidden wrote:
On 26 Oct 2008, at 17:37, Gregory Weston wrote:
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
It look to me like registering for kEventClassVolume /
kEventVolumeUnmounted carbon events would do what you need. This
will tell you the cRefNum of the unmounted volume (once again
though after it had gone).
The documentation you attached included a caveat that the volume
reference number I'd receive isn't useful for anything except
comparison against cached data. Can't use FSGetVolumeInfo.
_______________________________________________
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