Re: NSButton MouseExited or NSApplication MouseUp
Re: NSButton MouseExited or NSApplication MouseUp
- Subject: Re: NSButton MouseExited or NSApplication MouseUp
- From: Julian <email@hidden>
- Date: Mon, 4 Apr 2005 20:37:03 -0400
You are looking for
<x-tad-bigger>- (void)mouseDragged:(</x-tad-bigger><x-tad-bigger>NSEvent</x-tad-bigger><x-tad-bigger> *)</x-tad-bigger>theEvent
Julian
On Apr 4, 2005, at 7:37 PM, Mirna Pena wrote:
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
_______________________________________________
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