• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Rounded rect overlap in collection view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Rounded rect overlap in collection view
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: nonsense from cellFrameAtRow:column: on Leopard
  • Next by Date: Re: Rounded rect overlap in collection view
  • Previous by thread: API for show event time as free/busy (iCal)
  • Next by thread: Re: Rounded rect overlap in collection view
  • Index(es):
    • Date
    • Thread