objective c - Join two NSBezierPaths -


i have function returns nsbezierpath. call function 2 times 2 paths. want join them. when try function

[newpath appendbezierpath:[self functhatretursbezierpath]]; 

they joined single path there no line(link) original bezierpath (newpath) new one. want line end of newpath beginning of functionthatreturnsbezierpath.

edit

i want line or arc between 2 bezier paths. there corresponding function same.

the documentation of appendbezierpath: states:

... method not explicitly try connect subpaths in 2 objects, although operations in apath may still cause effect.

if second path starts movetopoint: appending start new subpath without connection previous subpath.

i recommend add boolean parameter "append" path creating method. if append == yes, created path starts linetopoint: instead of movetopoint:.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -