Re: Re: Customised NSCell leaves dirty traces while scrolling
Re: Re: Customised NSCell leaves dirty traces while scrolling
- Subject: Re: Re: Customised NSCell leaves dirty traces while scrolling
- From: Josh Yu <email@hidden>
- Date: Mon, 22 Nov 2010 11:00:13 +1100
> 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
Thanks Jonathan for your reply. I've tried replacing
drawInteriorWithFrame with drawWithFrame and no luck :(
I however looked into my overriding on heightOfRow, which hands back a
calculated row height according to the variable heights of elements
placed inside. Forcing heightOfRow producing a fixed height for each
row seemed to have fixed the problem which is suggesting that there
might be flaws in my text rect calculating codes.
kjoika
_______________________________________________
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