Re: Darwin-dev Digest, Vol 5, Issue 53
Re: Darwin-dev Digest, Vol 5, Issue 53
- Subject: Re: Darwin-dev Digest, Vol 5, Issue 53
- From: Michael Smith <email@hidden>
- Date: Wed, 20 Feb 2008 12:41:59 -0800
On Feb 20, 2008, at 12:06 PM, email@hidden wrote:
In my app I'm using:
kernResult = IOServiceAddMatchingNotification(
notificationObject,
kIOFirstMatchNotification,
IOServiceMatching(kIOUSBDeviceClassName),
callback,
handler,
&mediaIteratorAdded );
At the application level you should be talking to DiskArbitration, not
I/O Kit directly. You are probably holding up matching for the device
(possibly due to your callback not returning or returning the wrong
status).
Any assumption you make about the state of the system (mounted
filesystems, etc.) when this callback fires isn't going to be valid.
= Mike
_______________________________________________
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