• 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
Messed up NSTextField labels - thread issue?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Messed up NSTextField labels - thread issue?


  • Subject: Messed up NSTextField labels - thread issue?
  • From: email@hidden
  • Date: Wed, 6 Jun 2001 14:10:07 -0700

My application has a thread that runs in the background and periodically refreshes several UI labels (NSTextFields) via [theField setStringValue:theNewString]. Often when those fields redraw the old string isn't erased first, and the result is blurry and unreadable. Sometime when those fields redraw it correctly erases all the old junk before putting in the correct string.

I am beginning to wonder if this be an issue with the AppKit not being thread-safe. Perhaps the call to [theField setStringValue:theNewString] from within the background thread is interacting with the main application drawing/event loop in a bad way?

If anyone could offer some feedback I'd appreciate it.

-Hans Andersen


  • Follow-Ups:
    • Re: Messed up NSTextField labels - thread issue?
      • From: Brendan Younger <email@hidden>
  • Prev by Date: suggestions
  • Next by Date: Re: Cocoa Drawers Example
  • Previous by thread: Re: community, was: My Newbie Learning Question
  • Next by thread: Re: Messed up NSTextField labels - thread issue?
  • Index(es):
    • Date
    • Thread