Re: Callbacks from IOKit

2008-04-22 Thread Florent Pillet
Rick Mann wrote: I'm doing some stuff with USB, and the example code I'm using uses IOServiceAddMatchingNotification() to add a pointer to a C callback to get notified when things happen on the USB bus. In C++, one typically uses the refcon parameter in these APIs to pass a pointer to the C++

Callbacks from IOKit

2008-04-21 Thread Rick Mann
Being somewhat new to Cocoa, I often wonder if there's a better way to do things. I'm doing some stuff with USB, and the example code I'm using uses IOServiceAddMatchingNotification() to add a pointer to a C callback to get notified when things happen on the USB bus. In C++, one typically