lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
245 stars 17 forks source link

26055409: Xcode 7.3: NSBezierPath and CGPathRef don't interoperate, which makes CAShapeLayer sad #14618

Open openradar-mirror opened 8 years ago

openradar-mirror commented 8 years ago

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

openradar-mirror commented 8 years ago

Modified: 2016-05-03T02:06:12.540810

openradar-mirror commented 8 years ago

Modified: 2016-05-03T02:06:12.540810