• 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 did finish sliding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSlider did finish sliding


  • Subject: Re: NSSlider did finish sliding
  • From: Matt Neuburg <email@hidden>
  • Date: Sat, 02 Sep 2006 11:12:58 -0700
  • Thread-topic: NSSlider did finish sliding

On Fri, 1 Sep 2006 23:22:04 -0700, "Bruce Johnson" <email@hidden>
said:
>I need an NSSlider to operate on two levels.
>
>1- to continuously update while it is being dragged (via the checkbox in IB)
>2- to inform (via delegate or notification) that the user has finished
>dragging the slider control (via mouseUp I'm guessing)
>
>I've tried something simple (and obvious) like subclassing NSSlider
>and over-riding the mouseDown and mouseUp methods of NSResponder. But
>maybe I don't know enough about overriding events to get it to work.
>I suspect something in the responder/event chain...
>
>int the subclass of the slider:
>- (void)mouseDown:(NSEvent *)theEvent
>{
> NSLog("@mouse down");
> [super mouseDown: theEvent];
>}
>
>- (void) mouseUp: (NSEvent *)theEvent
>{
> NSLog("@mouse up");
> [super mouseUp: theEvent];
>}

Got archives? We *just* got through hashing this out:

<http://www.cocoabuilder.com/archive/message/cocoa/2006/8/17/169657>

m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



 _______________________________________________
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

  • Prev by Date: Re: Delays in tableviews using predicates
  • Next by Date: Re: Object Layering is Changing When Calling -addSubview:
  • Previous by thread: Re: Re: Re: NSSlider did finish sliding
  • Next by thread: Caret drawing artifacts in NSTextView (subclass)
  • Index(es):
    • Date
    • Thread