Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Refreshing edit box



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

References: 
 >Refreshing edit box (From: "Burak DEMIRKOL" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.