Version: 1.0

Posted: 2007-06-12

Build Requirements: Xcode 3.0, Mac OS X 10.5

Runtime Requirements: Mac OS X 10.5

View Source Code:

Download Sample (“LayerBackedOpenGLView.zip”, 653.7K)
Download Sample (“LayerBackedOpenGLView.dmg”, 714.2K)



Description

The ability to render a Cocoa view hierarchy as a Core Animation layer tree opens the possibility of freely combining disparate types of content. This sample provides a simple example of one such combination that is now becoming possible: hosting Cocoa controls as subviews of an NSOpenGLView.

This sample is a part of - WWDC 2007 Session 210, "Building Animated Cocoa User Interfaces"

Document Revision History

Date Notes
2007-06-12"LayerBackedOpenGLView" provides a simple example of hosting Cocoa controls as subviews of an NSOpenGLView.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.