I am currently working on a CALayer subclass (on Mac) which is implementing renderInContext to draw the layer's actual content, and noticed that this method is actually never called automatically. Is renderInContext rather supposed to be called manually unlike NSView's drawRect method?
I tried for instance setting CALayer's shouldRasterize = YES, and I am explicitly calling [layer setNeedsDisplay], as well as playing around with the parent NSView's layerContentsRedrawPolicy property, but none of them caused renderInContext ever to be called.