OS X / Cocoa question: I have a subclass of NSOpenGLView in a XIB (working with cocos2d). I want to capture the screen to disable the function keys, process switching, etc. while the app is running.
Given that I have an IBOutlet to the NSOpenGLView, how do I capture the screen in the App Delegate's -(void) applicationDidFinishLaunching: method? I've read through the Apple display capturing guide, yet I always end up with a black screen (instead of the proper contents of my NSOpenGLView) when I try to capture the display. I suspect that I'm not assigning the proper context when using CGDisplayCapture(), but I'm getting confused with contexts and can't figure out what's gone awry. For reference, here's the link to Apple's guide: https://developer.apple.com/library/mac/#documentation/graphicsimaging/Conceptual/QuartzDisplayServicesConceptual/Articles/DisplayCapture.html Thanks for any help, Clay _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com