NSButton Mouse Up/Down Events
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