• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Click-through
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Click-through (From: Daryle Walker <email@hidden>)
 >Re: Click-through (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Re: Click-through
  • Next by Date: Re: Official sidebar?
  • Previous by thread: Re: Click-through
  • Next by thread: How to debug crash in NSOperation?
  • Index(es):
    • Date
    • Thread