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 (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

Reply via email to