On 5/27/05 9:42 AM, Burak DEMIRKOL didst favor us with:
> I created a dialog based application.
I assume you mean you have a dialog window in your application. Is this a
nib window or a Dialog Manager dialog?
> I tried to create a thread (which will set window text of an edit box as
> number from 1 to 1000),
Setting text (or otherwise manipulating the UI) in a preemptive thread is a
Bad Idea because those APIs aren't thread safe. Is this a cooperative
thread, a pthread, or an MPTask? Are you setting the text from within the
thread or in response to some kind of CarbonEvent your thread posts to the
window?
(In the future, please provide more accurate and detailed information in
your initial post so people don't have to ask a lot of these kinds of
questions.)
> when I push a button, but I didn't succeed. The edit
> box only updates if the mouse cursor is moving on the window. How can I make
> the edit box to be updated?
Have you tried invalidating the window or flushing the port buffer?
Larry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden