• 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
Updating a Static Text and Slider From High Priority Thread While Resizing a Window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Updating a Static Text and Slider From High Priority Thread While Resizing a Window


  • Subject: Updating a Static Text and Slider From High Priority Thread While Resizing a Window
  • From: Peter Zegelin <email@hidden>
  • Date: Sat, 18 Oct 2008 22:23:56 +1100

Hi,

Still fairly new to Cocoa here.

I have a high priority thread that that for the moment just calls back as often as possible to a method that updates a static text object with the current time. A slider is also updated to a new value. Its a bit like a stop watch with a position indicator. This all works well until I resize a window or invoke a menu when the whole thing just grinds to a halt. If I call std::cout with the value the debugger shows a continuous stream of data so I know the thread is still being called as often as possible but the text and slider aren't updating. Is there any way to get these items to update under these circumstances? I tried calling [label setNeedsDisplay] but that just caused a crash.


thanks!

Peter Zegelin
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Updating a Static Text and Slider From High Priority Thread While Resizing a Window
      • From: Andrew Merenbach <email@hidden>
  • Prev by Date: Application quits when clicking "Ok" button is NSBeginCriticalAlertSheet in Tiger OS
  • Next by Date: Application quit in NSBeginAlertSheet
  • Previous by thread: Application quits when clicking "Ok" button is NSBeginCriticalAlertSheet in Tiger OS
  • Next by thread: Re: Updating a Static Text and Slider From High Priority Thread While Resizing a Window
  • Index(es):
    • Date
    • Thread