Re: Problem with NSWorkspaceDidMountNotification
Re: Problem with NSWorkspaceDidMountNotification
- Subject: Re: Problem with NSWorkspaceDidMountNotification
- From: Mark Dalrymple <email@hidden>
- Date: Mon, 9 May 2005 17:59:25 -0400
Hey Glenn,
> I'm in something of a catch-22. I can't proceed until I see the disc,
> but I can't see the disc until I proceed. I've even tried detaching
> a new thread that looks for the disc, to no avail. Any suggestions?
If you're on Tiger, you might want to check out the DiskArbitration
framework. You can register a callback that gets triggered whenever
a new disk appears. In that callback you can check through an info
dictionary to see useful information about the disk.
On Panther, the framework lives in /System/Library/PrivateFramework,
but the API is the same (at least the parts of the API I was using)
The only documentation I could find lives in the header files, but
all the information is there. It's a C / CF-based API, but not
terribly difficult to work with.
Cheers,
++Mark Dalrymple, email@hidden
http://borkware.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden