• 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
Round Corners With BezierPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Round Corners With BezierPath


  • Subject: Round Corners With BezierPath
  • From: Tom Marchand <email@hidden>
  • Date: Tue, 22 Aug 2006 21:33:24 -0400

Hi,

I am trying to draw a rectangle with round corners using NSBezierPath and I am not having much luck. Here's the code:

NSRect				myBounds	=	[self bounds];
NSBezierPath		*Box;

[NSBezierPath setDefaultLineJoinStyle:NSRoundLineJoinStyle];
Box=[NSBezierPath bezierPathWithRect: myBounds];
[Box stroke];

The corners are always square no matter what I set the JoinStyle to although [Box lineJoinStyle] returns the style I set in my code. Any idea what I am doing wrong?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Round Corners With BezierPath
      • From: Michael Nickerson <email@hidden>
    • Re: Round Corners With BezierPath
      • From: Stephen Deken <email@hidden>
  • Prev by Date: [SOLVED]: NSConnection rootProxyForConnectionWithRegisteredName fails to find connection
  • Next by Date: Re: NSWorkspace launchApplication fails on some apps
  • Previous by thread: [SOLVED]: NSConnection rootProxyForConnectionWithRegisteredName fails to find connection
  • Next by thread: Re: Round Corners With BezierPath
  • Index(es):
    • Date
    • Thread