Re: Properly using setNeedDisplayInRect
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