Using Cairo in a Cocoa Application

I know Cairo supports Quartz output, but how to implement such a thing in a Cocoa application? I really have not found good examples of this in the documentation.

+3
source share
1 answer

You can get CGContextRefout NSViewby calling [[[myView window] graphicsContext] graphicsPort]. Then you can create a Cairo context from CGContextRef.

+3
source

All Articles