Nevermind - I found out my problem. Sorry for the noise. On Mon, Jan 11, 2010 at 1:30 PM, Eric E. Dolecki <edole...@gmail.com> wrote:
> I am using a CGPathMutable to draw the hand on an analog clock: > > minuteHandPath = CGPathCreateMutable(); > > CGPathMoveToPoint(minuteHandPath, nil, center.x, center.y); > > CGPathAddLineToPoint(minuteHandPath, nil, center.x, center.y - 105); > > CGPathCloseSubpath(minuteHandPath); > > minuteHandLayer = [CAShapeLayer layer]; > > minuteHandLayer.path = minuteHandPath; > > UIColor *myStrokeColor2 = [UIColor colorWithHue:0.6 saturation:0.24 > brightness:0.71 alpha:1.0]; > > minuteHandLayer.strokeColor = myStrokeColor2.CGColor; > > minuteHandLayer.lineWidth = 2.0; > > [rootLayer addSublayer:minuteHandLayer]; > > > In another method I would like to update this, say to change the color of > it. How can I do this? Presently I have tried: > > > - (void) myMethod { > > minuteHandPath = CGPathCreateMutable(); > > //... > > } > > > This gives me an error. I don't see a way yet to clear the path out and > redraw it using CGPathMoveToPoint, etc. > > > ? > -- http://ericd.net Interactive design and development _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com