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:dirtyRect xRadius:6.0 yRadius:6.0];
        [path stroke];
        [super drawRect:dirtyRect];
}

Just some simple drawing code to draw a rounded border around the view. I end up with this:

http://img263.imageshack.us/img263/5651/screenshot20091031at202.png

The borders seem to be overlapping each other. I tried adjusting the y origin and height of the view but I cannot fix the overlap. What am I doing wrong here?
_______________________________________________

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