On Tue, Jul 29, 2014, at 08:12 PM, Graham Cox wrote: > I'm having problems adopting autolayout in part of my UI which is built > around NSOutlineView. > > My requirements are straightforward, I believe. The outline view can > scroll vertically but not horizontally, so its width should follow the > width of the scrollview/clip view that contains it. The width adjustment > only affects the last column of the table, so I have that set inthe > outline view settings. > > The problem I have is that IB will not let me add any constraints between > the enclosed NSOutlineView and the scrollview or clipview - the 'add > constraints' panel is all greyed out and nothing can be enabled. I also > can't control-drag between these views, one reason being that the > scrollview itself is completely invisible in IB, so there's no target for > the drag.
You should not be trying to install constraints on the outline view. NSOutlineView manages its own size. What is your actual goal? Just to have width-sizing? That's dictated by the column autosizing mode. --Kyle Sluder _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
