• 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: Views, scrolling, zoom and detail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Views, scrolling, zoom and detail


  • Subject: Re: Views, scrolling, zoom and detail
  • From: Allan Odgaard <email@hidden>
  • Date: Wed, 12 May 2004 02:08:30 +0200

On 12. May 2004, at 0:46, Andreas Mayer wrote:

Should I keep the view in its scrollpane, and have its drawRect method query the scrollbar and draw whatever is "onscreen"? Or does anyone have any alternative suggestions?
Yes. Draw only what is needed by using getRectsBeingDrawn:count: [...]

Just to clarify: the rectangle received by drawRect: is the union of the portions marked dirty, which for a scroll view will always be confined to the visible area.

So the getRectsBeingDrawn:count: optimization is rarely needed for views like what the OP deals with.
_______________________________________________
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.


  • Follow-Ups:
    • Re: Views, scrolling, zoom and detail
      • From: Andreas Mayer <email@hidden>
References: 
 >Views, scrolling, zoom and detail (From: Hamish Allan <email@hidden>)
 >Re: Views, scrolling, zoom and detail (From: Andreas Mayer <email@hidden>)

  • Prev by Date: mouse moved events in NSView?
  • Next by Date: direct buffer allocation with Java 1.4.2
  • Previous by thread: Re: Views, scrolling, zoom and detail
  • Next by thread: Re: Views, scrolling, zoom and detail
  • Index(es):
    • Date
    • Thread