• 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: Knotted Threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Knotted Threads (From: email@hidden)

  • Prev by Date: Re: Knotted Threads
  • Next by Date: Re: [fixed] Knotted Threads
  • Previous by thread: Re: [fixed] Knotted Threads
  • Next by thread: Saving state of NSOutlineView
  • Index(es):
    • Date
    • Thread