Re: setting NSSlider floatvalue from different thread
Re: setting NSSlider floatvalue from different thread
- Subject: Re: setting NSSlider floatvalue from different thread
- From: Camillo Lugaresi <email@hidden>
- Date: Thu, 16 Feb 2006 00:52:46 +0100
On 15/feb/06, at 13:24, Jack Nutting wrote:
On 2/15/06, Karim Morsy <email@hidden> wrote:
This is the code for the callback functions that gets called
repeatedly (about 50 times per second) on a seperate thread (which is
not the main thread).
(I am trying to animate a slider according to specific float values,
and I want to the slider to keep moving even if another button is
pressed, which usually blocks the main thread)
NSArray * arr= [NSArray
arrayWithObject:NSEventTrackingRunLoopMode];
AFAIK, NSEventTrackingRunLoopMode is the default mode, so
specifying just
that is probably the same as calling the other perform... method
without the
modes array.
Actually, the default mode is NSDefaultRunLoopMode. It should be in
the array, or no action will be performed under most circumstances.
Camillo
_______________________________________________
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