I have a layer-backed view, and want to understand how anchor point works for it and is it allowed at all to work with CALayer geometry properties (instead of using frame property of NSView)
First, quote from documentation:
The default value for anchorPoint is (0.5,0.5) which corresponds to the center of the layer's bounds
But when I try to change value of anchor point to (0.5,0.5) directly, I got offset. Here is example, red area is the original position (when nothing applied to the anchor point), the button was moved to the bottom-left corner:

When I set anchor point to (0,0) button placed where it should be:

Update:
Here is the code I use to instantiate Button:
self.button = [[NSButton alloc] initWithFrame:NSMakeRect(130, 130, 100, 40)];
self.button.title = @"My Title";
self.button.wantsLayer = YES;
NSLog(@"Button anchor Point is : (%f;%f)", self.button.layer.anchorPoint.x, self.button.layer.anchorPoint.y);
[panelView addSubview:self.button];
What interesting, seems that for layer-backed view's the default anchor point is 0,0:
NSLog(@"Button anchor Point is : (%f;%f)", self.button.layer.anchorPoint.x, self.button.layer.anchorPoint.y);
produces (0.000000;0.000000)
After all, OS X Deployment target is 10.8
[NSView addSubview]also add the subview's layer to the backing layer of the receiver? The docs don't mention it. - trojanfoe