On Mar 25, 2017, at 11:18 , Markus Spoettl <ms_li...@shiftoption.com> wrote: > > you can overwrite -mouseDown: and -mouseUp: and not call super.
Actually, that’s probably not going to work too well. The easiest way is to subclass the relevant controls and override “acceptsFirstMouse” to return false. However, either approach requires you to subclass all the control classes you use (that themselves return true from “acceptsFirstMouse”). Another way is to disable the click-thru-able controls when the window is no longer main. This has the advantage of making it clearer to the user that the control won’t behave as it normally does in an inactive window. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com