Re: NSTextField refreshes are wacky.
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.