Click-Through Disabler - Prevent a control from being clicked while the window is not the main window
Version: 1.0By default, Cocoa controls accept clicks when their window is disabled. This is called click-through.
Operating System: Mac OS X
The MFClickThroughDisabler class attach itself to a NSControl and remove the click-through behaviour by disabling the control when the window is not in foreground.
However, Mac OS X Human Interface Guidelines recommend that a control with destructive or difficult to undo action disable themselves when their window is inactive to avoid accidental clicks.