Re: Knotted Threads
Re: Knotted Threads
- Subject: Re: Knotted Threads
- From: Douglas Davidson <email@hidden>
- Date: Tue, 10 Jun 2003 10:31:17 -0700
On Tuesday, June 10, 2003, at 9:42 AM, email@hidden wrote:
Earlier I posted a problem in which an NSView was not updating during
a continuous NSSlider drag (to be accurate, it was updating, but new
frames were not being updated by an NSTimer). I then posted that I had
fixed the problem by placing the NSTimer in a separate thread. Now,
for some reason, the user interface (the slider and other buttons
--even those which have no connections) temporarily stop the other
thread when they are pushed pressed on (not even clicked), which
inhibits the updating again. How can I fix this problem once and for
all?
Move it back onto the main thread. Register the timer for
NSEventTrackingRunLoopMode. You can look up run loops, run loop modes,
and NSEventTrackingRunLoopMode in the documentation.
Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.