Attaching user data to AXObserver
- by Ben Packard
I am using an AXObserver to monitor when a window is closed. In the callback, I am just raising an NSNotification. All working well.
What is the correct syntax for attaching some user data as refcon? The working call looks like this:
err6 = AXObserverAddNotification(observerTable, tableRef, kAXUIElementDestroyedNotification, nil);
and the…