• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Finding out that a volume is going away before it does
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Finding out that a volume is going away before it does
      • From: email@hidden
References: 
 >Finding out that a volume is going away before it does (From: Gregory Weston <email@hidden>)
 >Re: Finding out that a volume is going away before it does (From: email@hidden)

  • Prev by Date: [MEET] Amsterdam CocoaHeads Thursday 10/30 7:00pm
  • Next by Date: Re: Finding out that a volume is going away before it does
  • Previous by thread: Re: Finding out that a volume is going away before it does
  • Next by thread: Re: Finding out that a volume is going away before it does
  • Index(es):
    • Date
    • Thread