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: Josh Yu <email@hidden>
- Date: Wed, 24 Nov 2010 20:08:09 +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
Problem solved.
NEVER return float to heightOfRow - this will mess the whole table up.
Not sure if it's a cocoa bug - but return integer at all times.
_______________________________________________
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