Re: Question on NSBezierPath
Re: Question on NSBezierPath
- Subject: Re: Question on NSBezierPath
- From: John Hörnkvist <email@hidden>
- Date: Fri, 25 May 2001 12:15:53 +0200
On Friday, May 25, 2001, at 11:45 AM, Stiphane Sudre wrote:
I've followed one interesting thread on NSBezierPath but am not still
able to answer this stupid question:
is it worth doing this ?
NSBezierPath * tBezierPath;
tBezierPath = [NSBezierPath bezierPath];
[tBezierPath moveToPoint:NSMakePoint(0,0)];
[tBezierPath lineToPoint:NSMakePoint(10,0)];
[tBeizerPath stroke];
tBezierPath = [NSBeziierPath bezierPath];
[tBezierPath moveToPoint:NSMakePoint(0,5)];
[tBezierPath lineToPoint:NSMakePoint(10,5)];
[tBeizerPath stroke];
or can I avoid the second call to tBezierPath = [NSBezierPath
bezierPath]; since as it was stated the path has been consumed ?
The path has only been consumed from the graphics context. You still
have the control points and commands in the NSBezierPath object.
Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com