io_iterator_t enumerator; kern_return_t result; result = IOServiceAddMatchingNotification( mNotifyPort, kIOMatchedNotification,
if you put this line in your constructor (or in any instance method) then you should be able to do this.instanceMethod() to refer to the instance method.