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

Re: Optimizing NSRectFill


  • Subject: Re: Optimizing NSRectFill
  • From: "Glenn L. Austin" <email@hidden>
  • Date: Sun, 21 Dec 2008 12:58:31 -0800

On Dec 21, 2008, at 9:43 AM, Michael Ash wrote:

On Sun, Dec 21, 2008 at 11:49 AM, Scott Ribe <email@hidden > wrote:
I guess what Mike is proposing is that redrawing in response to
setNeedsDisplay is only deferred until the end of handling the current
event? (And therefore only improves things when there are multiple calls on
the same view.) This is at least consistent with the documentation, as far
as I know. But I had assumed that somewhere the system was putting more of
an effort into deciding when to redraw marked views. And my assumption, as
far as I can tell, was also consistent with the available documentation.

That is indeed what I'm proposing. In other words, you'll always have this:


event: invalidate view
view: redraw
event: invalidate view
view: redraw

And never this:

event: invalidate view
event: invalidate view
view: redraw

I've seen both -- you can't guarantee one or the other.

IIRC, user events have priority over system-generated events (like redraws).

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: Optimizing NSRectFill
      • From: "Michael Ash" <email@hidden>
References: 
 >Re: Optimizing NSRectFill (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Optimizing NSRectFill (From: Scott Ribe <email@hidden>)
 >Re: Optimizing NSRectFill (From: "Michael Ash" <email@hidden>)

  • Prev by Date: Re: Stacks & Memory Management.
  • Next by Date: Re: Stacks & Memory Management.
  • Previous by thread: Re: Optimizing NSRectFill
  • Next by thread: Re: Optimizing NSRectFill
  • Index(es):
    • Date
    • Thread