Printing an NSOpenGLView

So, how do I do it?

The documentation says that you can print an NSView by sending it a print message. When I do that, I get a blank page.

Do I have to create a new view, or something?

I’m working in Objective C in Cocoa.

Are there OpenGL examples for Cocoa somewhere?


I don’t think you can (at least not in current versions of Mac OS X). You’d need to use glReadPixels to get your graphics back and print from there.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.