How should I write this code in objective-c:
kr = IOServiceAddMatchingNotification(gNotifyPort, kIOFirstMatchNotification, matchingDict, RawDeviceAdded, NULL, &gRawAddedIter); I tried this one:
kr = IOServiceAddMatchingNotification(gNotifyPort, kIOFirstMatchNotification, matchingDict, @selector(RawDeviceAdded), NULL, &gRawAddedIter); and the function look like:
(void)RawDeviceAdded:(void *)refCon iterator:(io_iterator_t)iterator { ..... } I am not sure if its right.