Mac Developer Library

Developer

AppKit Framework Reference NSOpenGLLayer Class Reference

Options
Deployment Target:

On This Page
Language:

NSOpenGLLayer

NSOpenGLLayer is a subclass of CAOpenGLLayer that is suitable for rendering OpenGL into layers. Unlike CAOpenGLLayer, NSOpenGLLayer uses distinctly Application Kit types.

  • view view Property

    Returns the view associated with the layer.

    Declaration

    Swift

    unowned(unsafe) var view: NSView?

    Objective-C

    @property(assign) NSView *view

    Discussion

    Subclasses shouldn't invoke setView:, but can override it if desired to intercept the layer's association to, or dissociation from, a view.

    Availability

    Available in OS X v10.6 and later.