• 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: "Brant Sears" <email@hidden>
  • Date: Mon, 30 Jan 2006 13:23:45 -0500
  • Thread-topic: How to prevent window redraw when removing a view?

>Typically, a window should never be redrawn until control reaches the
>event loop again. Are you sure it's redrawing "immediately?"

Yes. I am sure. It is happening as I step through the code. I have tried using Quartz Debug while doing this and I can see the screen update (yellow flash).

The call is:

[myView removeFromSuperviewWithoutNeedingDisplay];

and right when I step over this line it updates and goes from the previous content to a while background. I also see the flash when it runs not using the debugger.

Two lines later, I am putting the exact same content back onto the screen in the same global coordinates using a call such as:
[myWindow orderFront: nil];

At this point, I see it change from white back to the image.
 _______________________________________________
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: j o a r <email@hidden>
References: 
 >How to prevent window redraw when removing a view? (From: "Brant Sears" <email@hidden>)
 >Re: How to prevent window redraw when removing a view? (From: John Stiles <email@hidden>)

  • Prev by Date: First-time-call arguments in beginPageInRect:atPlacement: seem to be incorrect
  • Next by Date: Re: How to prevent window redraw when removing a view?
  • Previous by thread: Re: 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