Re: NSSlider and mouse events
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