• 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 mouse events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSSlider and mouse events


  • Subject: NSSlider and mouse events
  • From: Louis Sinclair <email@hidden>
  • Date: Thu, 03 Mar 2005 08:29:03 -0600

Hello,

I need to know when an NSSlider is being controlled by the user. I though the simplest way would be to subclass NSSlider and override the mouseDown and mouseUp methods. Unfortunately, only the mouseDown method is called. Since NSSlider is a descendant of NSResponder, shouldn't it receive the mouseUp notification? I'm also not getting mouseExited and mouseEntered messages.

The docs talk about setting up a modal loop and a periodic event stream to catch the other events. Unfortunately, that prevents the normal slider operation to occur, and interrupts any other NSTimer events my main window is expecting.

There must be a really simple way to accomplish this, but I'm not finding it. Any ideas?

Thanks!


-- Louis Sinclair

_______________________________________________
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 and mouse events
      • From: Cameron Hayne <email@hidden>
  • Prev by Date: When do bound UI items set their data source?
  • Next by Date: Why did this happen?
  • Previous by thread: Re: When do bound UI items set their data source?
  • Next by thread: Re: NSSlider and mouse events
  • Index(es):
    • Date
    • Thread