Returns a Cocoa window created from a Carbon window.
- macOS 10.0+
The Carbon WindowRef object to use to create the Cocoa window.
A Cocoa window created from
For more information on Carbon-Cocoa integration, see Using a Carbon User Interface in a Cocoa Application in Carbon-Cocoa Integration Guide.
For historical reasons, contrary to normal memory management policy
init does not retain
window. It is therefore recommended that you make sure you retain
window before calling this method. If
window is still valid when the Cocoa window is deallocated, the Cocoa window will release it.