• 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: Properly using setNeedDisplayInRect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Properly using setNeedDisplayInRect


  • Subject: Re: Properly using setNeedDisplayInRect
  • From: Matt Neuburg <email@hidden>
  • Date: Wed, 17 Mar 2010 09:30:00 -0700
  • Thread-topic: Properly using setNeedDisplayInRect

On Wed, 17 Mar 2010 09:50:17 +0100, Gustavo Pizano
<email@hidden> said:
> I check the Apple docs, and in the advance drawing techniques it says, like
> Draw Minimally, and they suggest using that method also... so how to make sure
> Im just drawing the backgrounds of the  active TA and not redrawing the whole
> view?

drawRect hands you a parameter - the rect. So you write your code in such a
way that you only draw material that is within (or, usually easier, material
that intersects) that rect. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



_______________________________________________

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

  • Prev by Date: Re: Case sensitive fileName
  • Next by Date: Re: Directory to save file in NSSavePanel
  • Previous by thread: Re: Properly using setNeedDisplayInRect
  • Next by thread: set file name in NSSavePanel
  • Index(es):
    • Date
    • Thread