NSButton MouseExited or NSApplication MouseUp
NSButton MouseExited or NSApplication MouseUp
- Subject: NSButton MouseExited or NSApplication MouseUp
- From: Mirna Pena <email@hidden>
- Date: Mon, 4 Apr 2005 16:37:40 -0700
I want to setup a button such that on a MouseDown event it begins an
action, and on a MouseUp event it stops the action. I setup the button
masks and this works well.... except when I click on the button and
move out of the button and let go of the mouse. Then the action was
not stopped. I wanted to catch the MouseEntered/Exited events but
NSButton won't allow. I sub-classed NSButton but I still won't get
those events.
I sub-classed the NSApplication to see if it'll catch the MouseUp event
only and it won't catch it if the MouseDown originated on the button.
Same for NSWindow sub-classing.
Any idea on how to catch a MouseUp event in the application or window
that had a MouseDown event originated on a button? Or how to catch the
MouseEntered/Exited event for a button?
-Mirna
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden