• 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: Shaun Wexler <email@hidden>
  • Date: Sat, 2 Sep 2006 11:02:44 -0700

On Sep 2, 2006, at 1:21 AM, John C. Randolph wrote:

On Sep 1, 2006, at 11:22 PM, Bruce Johnson wrote:

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

The pitfall here is that NSSlider just passes the mousedown to its cell, which then hijacks the event loop until the mouse is released. To override this behavior, you'll need to subclass NSSliderCell.

Actually if he is already subclassing NSSlider, he can simply do it from the mouseDown:


- (void)mouseDown:(NSEvent *event)
{
    [super mouseDown:event];
    [myDelegate handleMouseUp:[NSApp currentEvent]];
}

--
Shaun Wexler
MacFOH
http://www.macfoh.com

"Problems cannot be solved by the same level of thinking that created them." - Albert Einstein


_______________________________________________ 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
References: 
 >NSSlider did finish sliding (From: "Bruce Johnson" <email@hidden>)
 >Re: NSSlider did finish sliding (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: post http problem in cocoa
  • Next by Date: Re: Capture screen in Cocoa
  • Previous by thread: Re: NSSlider did finish sliding
  • Next by thread: Re: NSSlider did finish sliding
  • Index(es):
    • Date
    • Thread