• 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 and mouseUp event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSSlider and mouseUp event


  • Subject: NSSlider and mouseUp event
  • From: Christopher Sean Morrison <email@hidden>
  • Date: Thu, 12 Dec 2002 18:31:55 -0500

I've been banging my head against the wall for a while now (which might be
the cause of my problem) and I cannot figure out how a simple way to
invoke some action when a user releases the mouse on a slider control.

I've subclassed NSSlider and overridden mouseUp, mouseDown, and
mouseDragged. If I override all three and print a log message, I get a
down and up event as expected, as well as my target action during drag.
If I allow mouseDown to perform a super mouseDown: event, then mouseUp: is
never called, though mouseDragged is continuously (default NSSlider
subclass).

My question is how can I get notification that the mouse was released? I
have to be missing something here -- I shouldn't need to reimplement the
entire mouseDown just to get a mouseUp. Help? Thanks in advance.

Cheers!
Sean
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: BezierPath Madness...
  • Next by Date: How to toggle the subviews of a split view?
  • Previous by thread: Re: BezierPath Madness...
  • Next by thread: How to toggle the subviews of a split view?
  • Index(es):
    • Date
    • Thread