Re: Getting Carbon Volume Mount Events in a Cocoa (Core Foundation) process
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