• 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
NSButton Mouse Up/Down Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSButton Mouse Up/Down Events


  • Subject: NSButton Mouse Up/Down Events
  • From: Dave <email@hidden>
  • Date: Sat, 11 Apr 2015 14:30:48 +0100

Hi All,

From a different thread:

> On 8 Apr 2015, at 14:19, Uli Kusterer <email@hidden> wrote:
>
> I presume you mean to react both to mouseDown and mouseUp events? Not touch gestures on the trackpad? You'd have to subclass NSButton and override NSResponder's mouseDown: and mouseUp: methods. buttons on OS X support neither multiple target/action pairs on one object, nor do they let you control when they send their action. They will always send it on a mouseUp: with the mouse inside the button.

I’d like to be able to do the same action that NSButton does on Mouse Down on another object.

For example:

Button X				Button Y


Mouse down on Button X, causes it to be highlighted, I want this same action to occur on Button Y.

Does anyone have any idea of the best way of doing this?

Thanks a lot
Dave


_______________________________________________

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


  • Follow-Ups:
    • Re: NSButton Mouse Up/Down Events
      • From: Kyle Sluder <email@hidden>
References: 
 >addTarget: forControlEvents: ? (From: Dave <email@hidden>)
 >Re: addTarget: forControlEvents: ? (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: NSURLProtocol
  • Next by Date: Scattered NSProgress use
  • Previous by thread: Re: addTarget: forControlEvents: ?
  • Next by thread: Re: NSButton Mouse Up/Down Events
  • Index(es):
    • Date
    • Thread