Re: Click-through
Re: Click-through
- Subject: Re: Click-through
- From: Quincey Morris <email@hidden>
- Date: Sat, 25 Mar 2017 11:34:01 -0700
On Mar 25, 2017, at 11:18 , Markus Spoettl <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden