I have an application that borrows code from the Apple event handling sample. It looks like:
InstallEventHandler(GetEventMonitorTarget(), MonitorHandler, GetEventTypeCount(kEvents), kEvents, 0, &sHandler );
GetEventMonitorTarget() is all about getting events for other applications. But from what I've read the event is sort of forked, sent both to my application and to the target application. Because of that, even if I return noErr from my handler function with the intent to keep the default handler from executing the application still also handles the event.
Is there a way to suppress the default handler, or more specifically, the target application from handling the event?