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



Please don't take threads like this private just because someone responded
to you.

On 5/27/05 10:48 AM, Burak DEMIRKOL didst favor us with:

> Hi,
> 
>> I assume you mean you have a dialog window in your application. Is this a
>> nib window or a Dialog Manager dialog?
> 
> It is a nib window.
> 
>> 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?
> 
> It is a pthread

What about the other question?
> 
>> Have you tried invalidating the window or flushing the port buffer?
> 
> In fact, I am not sure.

You should be sure if you're doing something or not.

> How can I do that?

You can invalidate the window either by calling InvalRect on the port rect,
or the more modern way would be to call HIViewSetNeedsDisplay on the content
view (neither of which is safe to call from a preemptive thread).

You can flush the back buffer using QDFlushPortBuffer or, more modern,
HIWindowFlush (neither of which is safe to call from a preemptive thread).

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



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.