I\'m trying to learn how to use and implement CALayer in a Mac Objective-C application, but I can\'t seem to probably do the most basic thing - add a new layer and
CALayer
Updated info (Swift): first call view.makeBackingLayer() then set wantsLayer to true.
view.makeBackingLayer()
wantsLayer
https://developer.apple.com/documentation/appkit/nsview/1483695-wantslayer