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

Re: NSSlider and mouse events


  • Subject: Re: NSSlider and mouse events
  • From: Cameron Hayne <email@hidden>
  • Date: Tue, 22 Mar 2005 19:27:03 -0500

On 3/3/05 9:29 AM, "Louis Sinclair" <email@hidden> wrote:

> 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.

I'm not sure that this is your problem, but maybe you need to know about
NSEventTrackingRunLoopMode - e.g.:

[[NSRunLoop currentRunLoop] addTimer:timer
                             forMode:NSEventTrackingRunLoopMode];

You can see this in context in my sample project "TestButtonDown":
http://hayne.net/MacDev/TestButtonDown/
There is no need for a modal loop.
--
Cameron Hayne (email@hidden)
Hayne of Tintagel

 _______________________________________________
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 and mouse events (From: Louis Sinclair <email@hidden>)

  • Prev by Date: Re: Color of link in NSAttributedString
  • Next by Date: Re: Color of link in NSAttributedString
  • Previous by thread: NSSlider and mouse events
  • Next by thread: Re: NSSlider and mouse events
  • Index(es):
    • Date
    • Thread