• 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: kevent and disk eject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kevent and disk eject


  • Subject: Re: kevent and disk eject
  • From: Philip Aker <email@hidden>
  • Date: Mon, 21 Apr 2008 14:25:20 -0700

On 08-04-21, at 12:44, Garth Cummings wrote:

I know I can use volume events in Carbon for disk insertion and eject but had hoped to keep things at the same level and eventually move this background app down to a CFRunLoop tool.

DiskArbitration is the way to handle disk events at the CoreServices or UNIX layers.

It's somewhat light in the documentation department but the headers in DiskArbitration.framework should get you going. The framework is also open source.

Thanks Garth,

The DiskArbitration.framework headers are very tastefully done. It looks like one can get by just from the info in them.

Since my post, I've also found that tracking /Volumes in a kevent entry is a workable substitute for my needs, so problem solved.

Cheers,

Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Sent from my SE/30

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: kevent and disk eject
      • From: Chris Sarcone <email@hidden>
References: 
 >kevent and disk eject (From: Philip Aker <email@hidden>)
 >Re: kevent and disk eject (From: Garth Cummings <email@hidden>)

  • Prev by Date: Re: mach-o section question
  • Next by Date: Re: kevent and disk eject
  • Previous by thread: Re: kevent and disk eject
  • Next by thread: Re: kevent and disk eject
  • Index(es):
    • Date
    • Thread