Re: Rounded rect overlap in collection view

2009-10-31 Thread Graham Cox
On 01/11/2009, at 8:17 AM, PCWiz wrote: I tried drawing a rect around the whole frame like so: - (void)drawRect:(NSRect)dirtyRect { NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:[self frame] xRadius:6.0 yRadius:6.0]; [[NSColor whiteColor] set]; [path stroke];

Re: Rounded rect overlap in collection view

2009-10-31 Thread PCWiz
I tried drawing a rect around the whole frame like so: - (void)drawRect:(NSRect)dirtyRect { NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:[self frame] xRadius:6.0 yRadius:6.0]; [[NSColor whiteColor] set]; [path stroke]; [super drawRect:dirtyRect]; } ..a

Re: Rounded rect overlap in collection view

2009-10-31 Thread Kyle Sluder
On Oct 31, 2009, at 1:10 PM, PCWiz wrote: - (void)drawRect:(NSRect)dirtyRect { [[NSColor whiteColor] set]; NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:dirtyRect xRadius:6.0 yRadius:6.0]; You're rounding the wrong rect here. You want the whole view frame, not the dir

Rounded rect overlap in collection view

2009-10-31 Thread PCWiz
I'm using AMCollectionView (Code - harmless Cocoa, clone of NSCollectionView) to display a collection of views. In my prototype view subclass I have this: - (void)drawRect:(NSRect)dirtyRect { [[NSColor whiteColor] set]; NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:d