• 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 14:50:12 -0500
  • Thread-topic: How to prevent window redraw when removing a view?

>> I'm moving the view from one window to another. The purpose of this
>> is to make it look like the frame of the window is fading away
>> leaving only the content view. In this case, "myWindow" is a
>> borderless window that only contains my content view. The other
>> window contains a bunch of controls and has a normal border (title
>> bar, etc.)
>
>Pretty important additional information for this thread, wouldn't you
>say?   ;-)

Not necessarily. The redraw occurs after I have removed it from the regular window and before I have added it to the borderless window. So, it seems like the problem is trying to prevent the regular window from redrawing synchronously as a result of the removal of this view.

>If you don't insert the view into a different window, can you still
>see the flickering before restoring the view?

Yes.

>Would the same thing happen if the view you remove is not the content
>view of the window? The content view might be treated in a special way.

It is not the contentView, although it contains some "content" (i.e. a video image)

>Is the view you move complex, or could you just have a copy of it in
>the new window, and avoid swapping views all together?

This might be a solution. The are some reasons why doing that is not super easy in my codebase, which is why I didn't do that to begin with.

 _______________________________________________
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

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>)
 >RE: 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: j o a r <email@hidden>)
 >RE: 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: j o a r <email@hidden>)

  • Prev by Date: Re: programmatically updating an MO's attribute/field
  • Next by Date: Re: title bars messed up when scrolling in NSTableView
  • 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