[Drawkit] Styling line end caps

Brad Larson larson at sonoplot.com
Thu May 29 15:08:48 PDT 2008


How do you style line end caps?  I don't see an entry in DKStyle for  
them.  Other places in the framework, lines are styled by styling the  
underlying NSBezierPath, but when I try

[currentBezierPath moveToPoint:point1];
[currentBezierPath lineToPoint:point2];
[currentBezierPath setLineCapStyle:NSRoundLineCapStyle];
DKDrawablePath* currentPath = [[DKDrawablePath alloc]  
initWithBezierPath:currentBezierPath];

during the programmatic generation of a path, the path does not seem  
to use the rounded cap style.  I'm just starting to get into the  
styles, so there may be something I'm missing.

______________________
Brad Larson
SonoPlot, Inc.
3030 Laura Lane, Suite 120
Middleton, WI 53562





More information about the Drawkit mailing list