Skip navigation.
 
mlRe: nsslider subclass not responding to mouseUp:
FROM : glenn andreas
DATE : Mon Jun 05 20:30:07 2006

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_removed>
  <http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate  | images, textures, 
fractals, art

Related mailsAuthorDate
mlnsslider subclass not responding to mouseUp: Daniel Angermeier Jun 5, 18:19
mlRe: nsslider subclass not responding to mouseUp: mmalcolm crawford Jun 5, 18:24
mlRe: nsslider subclass not responding to mouseUp: glenn andreas Jun 5, 20:30
mlRe: nsslider subclass not responding to mouseUp: Erik Buck Jun 5, 22:46
mlRe: nsslider subclass not responding to mouseUp: Daniel Angermeier Jun 6, 00:26
mlRe: nsslider subclass not responding to mouseUp: Michael Ash Jun 6, 19:10