How to prevent window redraw when removing a view?
How to prevent window redraw when removing a view?
- Subject: How to prevent window redraw when removing a view?
- From: "Brant Sears" <email@hidden>
- Date: Mon, 30 Jan 2006 12:46:42 -0500
- Thread-topic: How to prevent window redraw when removing a view?
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
<<winmail.dat>>
_______________________________________________
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