Clarification: What is exatly drawing inside a thread
Clarification: What is exatly drawing inside a thread
- Subject: Clarification: What is exatly drawing inside a thread
- From: Stefan Pantke <email@hidden>
- Date: Sun, 8 Feb 2004 05:46:00 +0100
As part of an application, several threads setStringValue: of a shared
NSTextView
embedded in some NSLock'ed region.
I supposed, setStringValue: is no drawing operation.
But, the on screen drawing performed bad: From time to time some
text-strings
were printed over and over - a over c over H, e.g.
Now I inserted the [imageOutletOL lockFocusIfCanDraw] mechanism, which
seems to
solve the problem.
But why? Isn't setStringValue simply setting some internal view value
and invalidating
the view? And isn't the on-screen updating done by the main thread?
Or more general: How to determine, which operations DRAW and which do
not?
Kind reards,
Stefan
_______________________________________________
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.