Can you set the anchorPoint of the root layer on an NSView?
问题 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); 回答1: On 10.8, AppKit will