.
OS X 10.11 El Capitan, NSLayoutGuide.
NSView "" . , subview splitview.
, NSLayoutAnchor.
.
- (void) setUpToolbarItemConstrains {
NSView * refView = self.theOtherView.view;
NSView * toolsView = self.theToolbarItem.view;
self.theToolbarItem.minSize = CGSizeMake(200.0f, 0.0f);
self.theToolbarItem.maxSize = CGSizeMake(600.0f, 100.0f);
toolsView.translatesAutoresizingMaskIntoConstraints = NO;
[toolsView.leadingAnchor constraintEqualToAnchor: refView.leadingAnchor].active = YES;
}
, .