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

nsslider subclass not responding to mouseUp:


  • Subject: nsslider subclass not responding to mouseUp:
  • From: "Daniel Angermeier" <email@hidden>
  • Date: Mon, 5 Jun 2006 18:19:47 +0200

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.
so in my .m file of the nsslider subclass I wrote:
-(void)mouseDown:(NSEvent *)theEvent{
    [super mouseDown:theEvent];    // regular behavior of NSSlider
    // some additional behavior
    NSLog(@"mouse down");
}

-(void)mouseUp:(NSEvent *)theEvent{
    [super mouseUp:theEvent];    // regular behavior of NSSlider
    // some additional behavior
    NSLog(@"mouse up");
}

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

thanks,
daniel
_______________________________________________
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: glenn andreas <email@hidden>
    • Re: nsslider subclass not responding to mouseUp:
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: which cocoa wrapper for sqlite should i get?
  • Next by Date: Re: nsslider subclass not responding to mouseUp:
  • Previous by thread: Issue during group resizing
  • Next by thread: Re: nsslider subclass not responding to mouseUp:
  • Index(es):
    • Date
    • Thread