Wrong clientdata pointer in callback function
Hello,
I am trying to pass a data object to a callback function when a document loads.
This is my code:
AVAppRegisterNotification(AVDocDidOpenNSEL, gExtensionID, ASCallbackCreateNotification(AVDocDidOpen, (void*)myNotificationCallback), (void*)&aClientData);
The callback function is as follows:
ACCB1 void ACCB2 myNotificationCallback(void *clientData)
{
....
}
However my clientData pointer address in the callback function is not the same as the address when I put it in the AVAppRegisterNotification function.
How is this possible ?
