>> 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 (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

Reply via email to