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

NSSlider did finish sliding


  • Subject: NSSlider did finish sliding
  • From: "Bruce Johnson" <email@hidden>
  • Date: Fri, 1 Sep 2006 23:22:04 -0700

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];
}

I can't get the mouseUp log to print.  What other hoops am I missing?

Thanks
--
----
Bruce Johnson
email@hidden
_______________________________________________
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 did finish sliding
      • From: "Michael Ash" <email@hidden>
    • Re: NSSlider did finish sliding
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: Capture screen in Cocoa
  • Next by Date: Re: NSSlider did finish sliding
  • Previous by thread: Re: Capture screen in Cocoa
  • Next by thread: Re: NSSlider did finish sliding
  • Index(es):
    • Date
    • Thread