• 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: nsslider subclass not responding to mouseUp:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nsslider subclass not responding to mouseUp:


  • Subject: Re: nsslider subclass not responding to mouseUp:
  • From: glenn andreas <email@hidden>
  • Date: Mon, 5 Jun 2006 13:30:07 -0500


On Jun 5, 2006, at 11:19 AM, Daniel Angermeier wrote:

Hi,

I've subclassed NSSlider and I I want it to perform some additional
things when my custom instance receives mouse down or mouse up events.
[snip]

upon mouse down on my custom slider, nothing happens. upon mouse up "mouse down" is logged. what am I doing wrong ?

Other than your expectations of how NSSlider works, nothing.

Basically, NSSlider handles all the tracking within mouse down - it waits and loops in there until the mouse is released, which is why, when you call super mouseDown: it blocks until the mouse is released (at which point you get to your code afterwards that says "mouse down").

See <http://developer.apple.com/documentation/Cocoa/Conceptual/ BasicEventHandling/index.html> for an example of how this is done.


Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures, fractals, art



_______________________________________________ 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: nsslider subclass not responding to mouseUp:
      • From: "Daniel Angermeier" <email@hidden>
References: 
 >nsslider subclass not responding to mouseUp: (From: "Daniel Angermeier" <email@hidden>)

  • Prev by Date: Re: which cocoa wrapper for sqlite should i get?
  • Next by Date: Re: Strategy for read only Templates with Core Data
  • Previous by thread: Re: nsslider subclass not responding to mouseUp:
  • Next by thread: Re: nsslider subclass not responding to mouseUp:
  • Index(es):
    • Date
    • Thread