forum

Home / DeveloperSection / Forums / Call Back funtion handling

Call Back funtion handling

Anonymous User 1573 14-Oct-2015

I have created 2 callback functions in Obj-C, first callback function works fine but 2nd callback function generating problem.
Please help whats going wrong?
For example:

cb = IOServiceAddMatchingNotification(notifyPort, firstMatchNotification,
                                     matchingDict, RawDeviceAdded, NULL,
                                     &gRawAddedIter);
RawDeviceAdded(NULL, gRawAddedIter, self);

This works fine. But below function receives self as nil.

cb = IOServiceAddMatchingNotification(notifyPort, firstMatchNotification,
                                     matchingDict,BulkTestDeviceAdded,NULL,
                                     &gBulkTestAddedIter);

BulkTestDeviceAdded(NULL, gBulkTestAddedIter, self);


Updated on 14-Oct-2015
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By