Re: Problems drawing... Need help please.
Re: Problems drawing... Need help please.
- Subject: Re: Problems drawing... Need help please.
- From: Sherm Pendley <email@hidden>
- Date: Sun, 23 Oct 2005 22:29:43 -0400
On Oct 23, 2005, at 7:48 PM, Brian O'Brien wrote:
but it seems like the line caps and miters aren't working....
Also when an object is outlined... are the lines outside of the
bounding box?
Dunno about that. But for the caps & miters, see below.
On Oct 23, 2005, at 4:57 PM, Brian O'Brien wrote:
I basically want to set a color, draw a path then on to the next
object to be drawn...
Seems like every thing is being drawn in one color only...
self.path.setLineJoinStyle_(NSMiterLineJoinStyle)
self.path.setLineCapStyle_(NSButtLineCapStyle)
Here, you've set the cap & miter style for self.path.
r = NSRect((pt.x-1, pt.y-1), (3, 3))
p = NSBezierPath.bezierPathWithRect_(r)
p.closePath()
p.fill()
p.stroke()
But here you create p, which is a new instance of NSBezierPath that's
unrelated to self.path. You haven't set the cap & miter style for p,
so it draws with the default styles.
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
_______________________________________________
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