Re: How to prevent window redraw when removing a view?
Re: How to prevent window redraw when removing a view?
- Subject: Re: How to prevent window redraw when removing a view?
- From: Jonathan del Strother <email@hidden>
- Date: Mon, 30 Jan 2006 18:24:45 +0000
On 30 Jan 2006, at 18:02, John Stiles wrote
Typically, a window should never be redrawn until control reaches
the event loop again.
You'd imagine so, wouldn't you - but I had the same flickering
problem on swapping superviews.
On Jan 30, 2006, at 9:46 AM, Brant Sears wrote:
Hi. I am removing a view from my window and I want to disable the
redraw of the window for a brief period of time (within a method).
Right now the window redraws immediately which causes a flicker. I
am using the method removeFromSuperviewWithoutNeedingDisplay to
remove the view.
I tried using disableFlushWindow and enableFlushWindow around the
area of code where I want to disable the redraw of the window, but
unfortunately this does not seem to work.
Try NSDisableScreenUpdates() and NSEnableScreenUpdates(), see if they
help.
Jon
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden