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: John Stiles <email@hidden>
- Date: Mon, 30 Jan 2006 10:02:29 -0800
Typically, a window should never be redrawn until control reaches the
event loop again. Are you sure it's redrawing "immediately?"
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.
I am considering using replaceSubview:with: and creating an
NSImageView that has an image that I would create by capturing the
contents of the old subview into the image, but unfortunately that
involves some calls that are don't exist prior to 10.4 and also it
seems like there might be an easier way.
Does anyone know of an easier way to accomplish this?
Thanks.
Brant Sears
<ATT2474441.txt>
_______________________________________________
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