Rounded rect overlap in collection view
Rounded rect overlap in collection view
- Subject: Rounded rect overlap in collection view
- From: PCWiz <email@hidden>
- Date: Sat, 31 Oct 2009 14:10:15 -0600
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 (email@hidden)
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:
This email sent to email@hidden