Drawing Invalidation Question
Drawing Invalidation Question
- Subject: Drawing Invalidation Question
- From: Seth Willits <email@hidden>
- Date: Sat, 31 Jan 2009 21:41:49 -0800
When inside of -[NSView drawRect:], what's the difference between
- (void)drawRect:(NSRect)rect;
{
if ([self needsToDrawRect:someRect])
....
}
... and ...
- (void)drawRect:(NSRect)rect;
{
if (NSIntersectsRect(rect, someRect))
....
}
... ?
AFAICT from the documentation, there isn't a difference. Am I
misreading something important?
--
Seth Willits
_______________________________________________
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