• 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: Mount/Unmount events in Foundation tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mount/Unmount events in Foundation tool


  • Subject: Re: Mount/Unmount events in Foundation tool
  • From: Chris Suter <email@hidden>
  • Date: Fri, 26 Jan 2007 12:06:11 +1100


On 26/01/2007, at 11:30 AM, James Bucanek wrote:

Finlay Dobbie wrote on Thursday, January 25, 2007:

On 25/01/07, James Bucanek <email@hidden> wrote:
I have a Foundation tool (daemon) that I would very much like to get volume mount and unmount events. I can't get
NSWorkspaceDidMountNotification because I can't use NSWorkspace.

Is there some other event I can subscribe to, or is there a way of subscribing to Carbon events for the same action from within a Cocoa
app? I already checked NSDistributedNotificationCenter, and it doesn't fire any useful events on volume mount/unmount.

You might want to look at the DiskArbitration framework.

I looked at Disk Arbitration, but didn't see any kind of event support. There were functions that looked like they would approve or block volumes from mounting, and functions for getting information about devices, but nothing that looked like a mount/ unmount notification. I say "looked like" because the documentation for Disk Arbitration can only politely be described as "minimal."

Look at the source code for disktool.

http://www.opensource.apple.com/darwinsource/10.4.8.ppc/ DiskArbitration-156/disktool/disktool.c

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

References: 
 >Re: Mount/Unmount events in Foundation tool (From: James Bucanek <email@hidden>)

  • Prev by Date: Re: Mount/Unmount events in Foundation tool
  • Next by Date: CoreData and Undo menu item title?
  • Previous by thread: Re: Mount/Unmount events in Foundation tool
  • Next by thread: CoreData and Undo menu item title?
  • Index(es):
    • Date
    • Thread