• 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: NSTextField refreshes are wacky.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField refreshes are wacky.


  • Subject: Re: NSTextField refreshes are wacky.
  • From: email@hidden
  • Date: Tue, 12 Mar 2002 10:53:23 -0800

I have not changed the background of the text field; it's vanilla. I
did not duplicate the text field.

The problem seems to be related to threads. I have since hacked it
up to use NSNotifications from the worker thread to change the status
field in the main thread. This worked in all but one case, and I was
able to move that status field change into the main thread. I found
it disheartening that the problem occurred intermittently, but it
seems to be fine now.

Ah, you were updating it from a background thread. Ya know, that would've been useful information to put into your original post. :->
Display is not multithreaded. In general, all drawing done with AppKit must be done in the main thread. Apple has some internal ways to get around that (the UI heartbeat and associated machinery), but AFAIK those are not public.

Ben Haller
Stick Software
_______________________________________________
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: 
 >Re: NSTextField refreshes are wacky. (From: Jonathan Feinberg <email@hidden>)

  • Prev by Date: preventWindowOrdering
  • Next by Date: Special behaviour for a Save/Open Panel
  • Previous by thread: Re: NSTextField refreshes are wacky.
  • Next by thread: Re: NSTextField refreshes are wacky.
  • Index(es):
    • Date
    • Thread