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
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
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];