Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: IOKit USB Device Notification Subscription
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IOKit USB Device Notification Subscription



On May 15, 2010, at 4:06 PM, John Heaton wrote:
> I'm attempting to create notifications that get delivered via IOKit, but my notifications are never actually delivered. I reviewed some Apple sample code, and it was nearly the same as mine. Does anyone know what is wrong?
>
> Here is the code: http://gist.github.com/402391


I think the problem is the release of the iterator in the call to iAttach and iDetach. I would restructure to create the iterator's outside the iSubscribe call and release when you are totally done with matching. Have a look at the examples in /Developer/Examples/IOKit/usb/

Brett
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >IOKit USB Device Notification Subscription (From: John Heaton <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.