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.
|