• 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: Stopping redrawing contents when resizing window ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stopping redrawing contents when resizing window ?


  • Subject: Re: Stopping redrawing contents when resizing window ?
  • From: Cameron Hayne <email@hidden>
  • Date: Fri, 11 Oct 2002 17:46:48 -0400

On 11/10/02 2:05 pm, "Robert Miller" <email@hidden> wrote:
> Does any one know if it is possible to stop redrawing the contents of
> a window while it is being resized. ? I have an NSTableView with many
> cells in a window and when the window is resized it is very sluggish
> because of the redrawing of the cells. It seems that entire area is
> updated even though a small area only may become newly exposed. Even if
> I detect the 'inLiveResize' flag and try to draw nothing in my DrawRect
> method. Someone or something insists on erasing the view to white. I've
> tried all sorts of ways to overcome the problem but with no luck.

Is your test of the inLiveResize flag effective ? (check with an NSLog).
I have successfully controlled redrawing in my test program "ImageCalc"
(source availabel at http://hayne.net/MacDev/ImageCalc ). But I do a redraw
to erase to white when resizing so maybe I'm not seeing your problem.

>I'd like to control the updating of the exposed areas if the window is
> grown and do nothing if the window is shrunk.

Hmm - this seems like something a bit different. You should expect to get a
redraw after the resize is over with. So it is dealing with that redraw that
you are talking about. See the viewDidEndLiveResize method.

--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Stopping redrawing contents when resizing window ? (From: Robert Miller <email@hidden>)

  • Prev by Date: Re: Counting lines
  • Next by Date: Re: Cocoa Books (was New to Cocoa)
  • Previous by thread: Stopping redrawing contents when resizing window ?
  • Next by thread: [newbie] Multi-window applications?
  • Index(es):
    • Date
    • Thread