Getting a callback before repain
Getting a callback before repain
- Subject: Getting a callback before repain
- From: Nicholas Francis <email@hidden>
- Date: Thu, 8 Jan 2004 22:45:26 +0100
Hi guys...
I have a really simple question, to which I just can find the right
docs:
I want to get a callback into a class before a window repaint
happens....
My problem is basicall like this: I have a custom NSView that arranges
its subviews...
Whenever a view is added, I do a reflow of the view, rearranging all
subviews (which again have many subviews).... I also reflow whenever
the view size changes, or any subview changes size...
Basically, this means that if I add 20 new views, I get the dubious
honor of reflowin n^2 times - hence I would like to just mark my view
as needing a reflow and the do that before a repaint, but AFTER adding
all 20 views.
Any hints?
Nicholas Francis
------------------------------------------------------------------------
-------
Scheduling fascist - Over The Edge Entertainments
_______________________________________________
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.