• 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
NSBezierPath (Modifying Paths)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSBezierPath (Modifying Paths)


  • Subject: NSBezierPath (Modifying Paths)
  • From: Joseph Crawford <email@hidden>
  • Date: Wed, 4 Feb 2009 10:35:41 -0500

Hello Everyone,

I am working on something small just to learn with and I have been trying to figure this out for a while. The end result that I am looking for is this

Draw A straight line
click the line and drag to make that line curve

Now I have been able to get all of this to work aside from one thing. If you draw a curve then go to draw another the first one is not remembered.

Code: http://paste.lisp.org/display/74870

I know it is my call to removeAllPaths on line 59 of the code pasted at the URL above.

I know that i need to use the elementsAtIndex: and elementsAtIndex:index associatedPoints:points to modify the points rather than remove them all

However what I do not know is where I would get this Index to use.

Any assistance would be appreciated.

Thanks,
Joseph Crawford
_______________________________________________

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: NSBezierPath (Modifying Paths)
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: NSMatrix, scroll wheel and tool tips
  • Next by Date: Re: AquaticPrime Config.php + PayPal Advanced Variables Not Working
  • Previous by thread: Re: Open OtherApp just behind MyApp
  • Next by thread: Re: NSBezierPath (Modifying Paths)
  • Index(es):
    • Date
    • Thread