Re: draw two strokes(lines) simultaneousy on NSView
Re: draw two strokes(lines) simultaneousy on NSView
- Subject: Re: draw two strokes(lines) simultaneousy on NSView
- From: Graham Cox <email@hidden>
- Date: Tue, 20 Jan 2009 17:26:18 +1100
On 20 Jan 2009, at 5:12 pm, Gami Ravi wrote:
I want to create an application that will draws two strokes
simultaneously on NSView. How can i draw two strokes simultaneously ?
Any help would be appreciated.
You don't say what you want to stroke, but let's assume a NSBezierPath.
// ...set up stroke parameters for stroke 1 here ...
[path stroke];
// ...set up stroke parameters for stroke 2 here...
[path stroke];
In other words, you just draw one stroke then the other.
If you really want to stroke two lines or other paths
"simultaneously" (not sure what you mean by that either - nothing is
truly simultaneous), then you can combine paths into one bezier path
object and stroke it all at once. However, you can't apply separate
stroke parameters to different parts of the path this way.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden