I know Cairo has support for Quartz output, but how would one implement such a thing in a Cocoa app? I haven't really found any good examples of this being done in the documentation.
You can obtain a CGContextRef from an NSView by calling [[[myView window] graphicsContext] graphicsPort]. You can then create a Cairo context from the CGContextRef.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With