Not really a Cocoa question, and it's answered in the docs on
IOServiceAddMatchingNotification :)
"The notification is armed when the iterator is emptied by calls
to IOIteratorNext - when no more objects are returned, the
notification is armed. Note that the notification is not armed when
firs
> >IOReturnkernErr;
>
> You never seem to check for errors. Please ensure
> your calls are
> succeeding by checking the value of this variable. If
> they're
> failing, use macerror(1) to look up the error number.
IOServiceAddMatchingNotification() returns no errors (0).
On Tue, Sep 8, 2009 at 5:47 PM, Chris Carson wrote:
> IOReturn kernErr;
You never seem to check for errors. Please ensure your calls are
succeeding by checking the value of this variable. If they're
failing, use macerror(1) to look up the error number.
> - (id) init
> {
>
Hi all,
Can't get a simple example working. AppearedNotificationHandler() should be
called in the code below when a USB device (any device for now) is plugged in.
I see the NSLog(@"registerDeviceCallbackHandler") message appear in the console
when I start the application, but never see the
NSL