Is it possible to modify the anchorPoint
property on the root CALayer
of a layer-backed NSView
?
I have a view called myView
and it seems every time I set the anchorPoint
, it gets overridden in the next run loop. I am doing this:
NSView *myView = [[myView alloc] initWithFrame:CGRectMake(0, 0, 50, 50)];
//set the root layer
myView.layer = [CALayer layer];
myView.wantsLayer = YES;
//gets overridden on the next run loop
myView.layer.anchorPoint = CGPointMake(1,1);
Basically it will set the anchor to [0,0] from [0.5,0.5], to account for this i uses something like :