Hallo everyone Let's assume I have a custom NSView that will use to custom NSCell instances to render its contents. Now, if "drawRect:" is called on the NSView, I get the dirty rect that needs to be redrawn.
The NSCell class on the other hands uses: - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView Where "cellFrame" is the complete frame the NSCell should use to draw itself into. Should I intersect the dirty region of the NSView and somehow add additional functionality to the NSCell to maintain the dirty region? Or should I ask the "controlView" for the region and maintain it there? How do people implement NSCell subclasses when the goal is to minimize the redraw code needed when the cell is drawn? Thanks a lot Patrick _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com