PDA

View Full Version : Printing an NSOpenGLView



sgketcham
02-08-2002, 12:23 PM
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?

Thanks,
Steve

OneSadCookie
02-11-2002, 05:42 PM
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.