• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to prevent window redraw when removing a view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: How to prevent window redraw when removing a view?
      • From: Jonathan del Strother <email@hidden>
    • RE: How to prevent window redraw when removing a view?
      • From: "Brant Sears" <email@hidden>
References: 
 >How to prevent window redraw when removing a view? (From: "Brant Sears" <email@hidden>)

  • Prev by Date: Re: Fake NSMenu-like view
  • Next by Date: Re: A puzzlement - A Cocoa Audio application
  • Previous by thread: How to prevent window redraw when removing a view?
  • Next by thread: RE: How to prevent window redraw when removing a view?
  • Index(es):
    • Date
    • Thread