• 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: Getting Carbon Volume Mount Events in a Cocoa (Core Foundation) process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Carbon Volume Mount Events in a Cocoa (Core Foundation) process


  • Subject: Re: Getting Carbon Volume Mount Events in a Cocoa (Core Foundation) process
  • From: James Bucanek <email@hidden>
  • Date: Wed, 10 Oct 2007 12:25:20 -0700

Aaron Burghardt <mailto:email@hidden> wrote (Tuesday, October 9, 2007 5:47 PM -0400):

If you don't mind linking against the AppKit, you can use NSWorkspace manager without an instance of NSApplication:

Aaron,

Thanks for thinking outside the box. I had tried to use NSWorkspace before outside of an NSApplication and just couldn't get it to work -- at least not for what I was attempting -- and simply assumed that NSWorkspace couldn't be used at all in a Foundation tool.

Regardless, I gave your idea a try and it works! I'm getting NSWorkspace notifications for every volume mount and unmount event.

Thanks again, and I hope this information helps someone else.

James
--
James Bucanek

_______________________________________________

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


References: 
 >Re: Getting Carbon Volume Mount Events in a Cocoa (Core Foundation) process (From: Aaron Burghardt <email@hidden>)

  • Prev by Date: Re: Core Data modelling question re: OutlineEdit example
  • Next by Date: Compositing over live video examples
  • Previous by thread: Re: Getting Carbon Volume Mount Events in a Cocoa (Core Foundation) process
  • Next by thread: Adding binding causes all bindings to fail
  • Index(es):
    • Date
    • Thread