How can i convert NSBezierPath to CGPath

Right from Apple documentation: Creating a CGPathRef From an NSBezierPath Object Here is the relevant code. @implementation NSBezierPath (BezierPathQuartzUtilities) // This method works only in OS X v10.2 and later. – (CGPathRef)quartzPath { int i, numElements; // Need to begin a path here. CGPathRef immutablePath = NULL; // Then draw the path elements. numElements = … Read more