• 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: "Gami Ravi" <email@hidden>
  • Date: Tue, 20 Jan 2009 12:05:02 +0530

Hi Graham,
Thanks for your answer.
Let me explain current scenario.
I have two input device from which i am getting raw coordinates(x,y).
When there is only one device i can draw paths using x,y coordinates. All things are working fine.
Now if user writes using two input device on one surface simultaeously then it should draw two individual path depending on (x,y) coordinates from different input device.
so what is your inputs on this situation?


Thanks & Regards,
Ravi.

----- Original Message ----- From: "Graham Cox" <email@hidden>
To: "Gami Ravi" <email@hidden>
Cc: <email@hidden>
Sent: Tuesday, January 20, 2009 11:56 AM
Subject: Re: draw two strokes(lines) simultaneousy on NSView




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




Email Scanned for Virus & Dangerous Content by : www.CleanMailGateway.com


-- _____________________________________________________________________ Disclaimer: This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated.Company has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. __________________________________________________________________________

_______________________________________________

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: Raleigh Ledet <email@hidden>
References: 
 >draw two strokes(lines) simultaneousy on NSView (From: "Gami Ravi" <email@hidden>)
 >Re: draw two strokes(lines) simultaneousy on NSView (From: Graham Cox <email@hidden>)

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