• 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: drawRect problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drawRect problem


  • Subject: Re: drawRect problem
  • From: Uli Kusterer <email@hidden>
  • Date: Fri, 2 Mar 2007 09:00:12 +0100

Am 27.02.2007 um 00:50 schrieb Ken Tozier:
I'm using a tracking rect on the whole view and mouseEntered/ mouseExited to turn the timer on and off.

Well, that's a start. :-)

I found through testing that Cocoa was getting really bogged down when I used a tracking rect for each cell in the view. If you moved the mouse rapidly all over the view, it was possible to get 5 to 10 seconds ahead of the refreshing and you could just sit there and watch as it struggled to catch up.

You shouldn't get such bad performance, unless you're doing something ... well... stupid. Like forcing an immediate redraw and flush of the window buffer instead of using setNeedsDisplay:, or redrawing the whole view every time instead of just the dirty rect, or dirtying the entire view instead of only the rects that changed. Or having your tracking rects overlap and fight, or whatever...


Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Clipping text from NSLayoutManager
  • Next by Date: Reloading a window from NIB
  • Previous by thread: Re: NSTabView-like view and NSWindowController
  • Next by thread: Reloading a window from NIB
  • Index(es):
    • Date
    • Thread