• 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: NSButton MouseExited or NSApplication MouseUp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSButton MouseExited or NSApplication MouseUp (From: Mirna Pena <email@hidden>)

  • Prev by Date: Re: NSButton MouseExited or NSApplication MouseUp
  • Next by Date: setDocumentCursor usage?
  • Previous by thread: Re: NSButton MouseExited or NSApplication MouseUp
  • Next by thread: vm thrashing - how to detect
  • Index(es):
    • Date
    • Thread