• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: draw two strokes(lines) simultaneousy on NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: draw two strokes(lines) simultaneousy on NSView
      • From: "Gami Ravi" <email@hidden>
References: 
 >draw two strokes(lines) simultaneousy on NSView (From: "Gami Ravi" <email@hidden>)

  • Prev by Date: Re: NsCollectionView Selection
  • Next by Date: Re: Problem setting up custom toolbar item in IB
  • Previous by thread: draw two strokes(lines) simultaneousy on NSView
  • Next by thread: Re: draw two strokes(lines) simultaneousy on NSView
  • Index(es):
    • Date
    • Thread