Re: Customised NSCell leaves dirty traces while scrolling
Re: Customised NSCell leaves dirty traces while scrolling
- Subject: Re: Customised NSCell leaves dirty traces while scrolling
- From: "email@hidden" <email@hidden>
- Date: Sun, 21 Nov 2010 10:22:19 +0000
On 20 Nov 2010, at 07:24, Josh Yu wrote:
>
>
> A call to NSTableView setNeedsDisplay:YES will always solve the
> problem however too inefficient.
>
> Can anyone please suggest if there's anything might be done to fix that up?
>
> kjoika
> _______________________________________________
>
Try overriding NSCell - drawWithFrame:inView:
IIRC this is called before - drawInteriorWithFrame:InView:
The default implementation of - drawWithFrame:inView: is perhaps the source of your unwanted drawing.
Regards
Jonathan Mitchell
Developer
Mugginsoft LLP
http://www.mugginsoft.com_______________________________________________
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