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

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


  • Follow-Ups:
    • Re: NSButton MouseExited or NSApplication MouseUp
      • From: Julian <email@hidden>
    • Re: NSButton MouseExited or NSApplication MouseUp
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Re: Comments in CF Property Lists ?
  • Next by Date: vm thrashing - how to detect
  • Previous by thread: Re: Comments in CF Property Lists ?
  • Next by thread: Re: NSButton MouseExited or NSApplication MouseUp
  • Index(es):
    • Date
    • Thread