SOLVED: Strange NSCell subclass issue ...

2009-03-31 Thread Mic Pringle
NSZeroRect operation:NSCompositeSourceOver fraction:1.0f]; Turns out the image was being drawn for each row, on in the same place each time. Doh! -Mic -- Forwarded message -- From: Mic Pringle Date: 2009/3/31 Subject: Strange NSCell subclass is

Re: Strange NSCell subclass issue ...

2009-03-31 Thread Benjamin Stiglitz
On Tue, Mar 31, 2009 at 07:37:03PM +0100, Mic Pringle wrote: > Hi, > > I have subclassed NSCell and implemented only the following method ... > > - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView > { > NSImage *separator = [NSImage imageNamed:@"Separator.png"]; > [s

Strange NSCell subclass issue ...

2009-03-31 Thread Mic Pringle
Hi, I have subclassed NSCell and implemented only the following method ... - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView { NSImage *separator = [NSImage imageNamed:@"Separator.png"]; [separator setScalesWhenResized:YES]; [separator setFlipped:YES];