ADC Home > Reference Library > Technical Q&As > Porting > Carbon >

QDFlushPortBuffer



Q: I ported my application to Carbon on Mac OS X and my windows don't always update properly. My drawing code hasn't changed but my windows won't display their new contents until I call WaitNextEvent. How can I get my windows to update outside of the normal event loop?

A: Mac OS X windows are double-buffered by default. See Technote 2003, Moving your code to Mac OS X for more details. If you draw into a window and want those changes to appear on the screen immediately (before the next call to WaitNextEvent) then you need to call QDFlushPortBuffer to flush the updated portion to the screen.

[Nov 08 2000]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.