Type Method

removeMonitor:

Remove the specified event monitor.

Declaration

+ (void)removeMonitor:(id)eventMonitor;

Parameters

eventMonitor

The event handler object to remove.

Discussion

You must ensure that eventMonitor is removed only once. Removing the same eventMonitor instance multiple times results in an over-release condition, even in a Garbage Collected environment

See Also

Monitoring Application Events

+ addGlobalMonitorForEventsMatchingMask:handler:

Installs an event monitor that receives copies of events posted to other applications.

+ addLocalMonitorForEventsMatchingMask:handler:

Installs an event monitor that receives copies of events posted to this application before they are dispatched.