• 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: Andreas Mayer <email@hidden>
  • Date: Wed, 12 May 2004 00:46:32 +0200

Am 11.05.2004 um 22:51 schrieb Hamish Allan:

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: (10.3 and later). See http://developer.apple.com/documentation/Cocoa/Conceptual/DrawViews/ Tasks/OptimizingDrawing.html

But it's not feasible to use an NSBezierRect that way,

I'd try to just draw vertical lines using NSRectFill(). Or ask in quartz-dev if there's some faster way. :)


Andreas
_______________________________________________
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: Allan Odgaard <email@hidden>
References: 
 >Views, scrolling, zoom and detail (From: Hamish Allan <email@hidden>)

  • Prev by Date: Re: Best Cross-Platform Solution
  • Next by Date: Re: CFStringCreateWithCharacters and unicode ":" chars
  • Previous by thread: Views, scrolling, zoom and detail
  • Next by thread: Re: Views, scrolling, zoom and detail
  • Index(es):
    • Date
    • Thread