Instance Property

windowRef

The Carbon WindowRef associated with the window, creating one if necessary.

Declaration

var windowRef: UnsafeMutableRawPointer { get }

Discussion

This property can be used to create a WindowRef for a window containing a Carbon control. Subsequent accesses to this property get the existing WindowRef. You use a WindowRef to create a Carbon window reference for a Cocoa window; this assists the integration of Carbon and Cocoa code and objects.

For more information see MacWindows.h. For more information on Carbon-Cocoa integration, see Carbon-Cocoa Integration Guide.

See Also

Working with Carbon

init?(windowRef: UnsafeMutableRawPointer)

Returns a Cocoa window created from a Carbon window.