CAShapeLayer only works with CGPathRef objects. Most of AppKit wants me to use NSBezierPath. I now have the choice of either switching all my AppKit code to CGPathRef (until I run into API that requires NSBezierPath), or to manually convert by iterating over the path's segments and generating a new one. Even if, internally, this part for some reason hasn't been unified yet, wouldn't it be better to add these conversion functions to the OS, so app developers don't constantly have to reinvent and debug that code themselves?
Alternately, could you at least lessen our pain and change CAShapeLayer to also work with NSBezierPaths, or add an NSShapeLayer that does?
Description
CAShapeLayer only works with CGPathRef objects. Most of AppKit wants me to use NSBezierPath. I now have the choice of either switching all my AppKit code to CGPathRef (until I run into API that requires NSBezierPath), or to manually convert by iterating over the path's segments and generating a new one. Even if, internally, this part for some reason hasn't been unified yet, wouldn't it be better to add these conversion functions to the OS, so app developers don't constantly have to reinvent and debug that code themselves?
Alternately, could you at least lessen our pain and change CAShapeLayer to also work with NSBezierPaths, or add an NSShapeLayer that does?
Thanks!
Product Version: Xcode 7.3 (7D175) Created: 2016-05-03T02:06:12.540600 Originated: 2016-05-03T04:05:00 Open Radar Link: http://www.openradar.me/26055409