Re: Customised NSCell leaves dirty traces while scrolling

2010-11-24 Thread Josh Yu
>> 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

Re: Re: Customised NSCell leaves dirty traces while scrolling

2010-11-21 Thread Josh Yu
> 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 replac

Customised NSCell leaves dirty traces while scrolling

2010-11-21 Thread Josh Yu
Hey guys I was implementing a customised NSCell into NSTableView and it leaves dirty traces while scrolling up bit by bit. The cell was subclassed from NSTextFieldCell, using drawInteriorWithFrame: and coordinates to locate and place elements inside (drawInRect for NSStrings whatever). The NSTabl