• 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
Getting a callback before repain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Prev by Date: Re: Collection classes
  • Next by Date: SMySQL
  • Previous by thread: Re: Localization
  • Next by thread: Re: Getting a callback before repain
  • Index(es):
    • Date
    • Thread