Re: Autolayout frustrations with NSOutlineView [SOLVED, +follow-up question]
Re: Autolayout frustrations with NSOutlineView [SOLVED, +follow-up question]
- Subject: Re: Autolayout frustrations with NSOutlineView [SOLVED, +follow-up question]
- From: Graham Cox <email@hidden>
- Date: Wed, 30 Jul 2014 11:52:16 +1000
On 30 Jul 2014, at 11:28 am, Graham Cox <email@hidden> wrote:
> The table width should equal the enclosing scroller width.
>
>
>> Just to have width-sizing? That's dictated by
>> the column autosizing mode.
>
>
> I have that set to 'last column only', and 'resizing' is enabled. This is a view-based table BTW.
OK, I have found the problem.
Turns out the table was resizing fine, it was the elements of the row view that I'd forgotten to set constraints on, so these stayed in fixed positions when the table resized, giving the impression that the table wasn't resizing. Adding in those missing constraints hasit all working smoothy.
I have a follow up question, which concerns a different part of the same overall UI:
I have a scrollview with a custom view inside, and this scrollview changes size with the enclosing split view which is the top-level view in the window. What I want is to have my enclosed custom view 'stick' to the top, left (or wherever it's scrolled to) of the clip view as long as it's larger than the clip view, but become horizontally and vertically centered in the clip view if it's smaller (e.g. when zoomed so that its frame shrinks). This is a fairly classic requirement, and has been solved in the past by having a custom clip view that can recognise the 'smaller than' situation and force its contained view to be centred. I'm wondering if this can now be achieved with autolayout instead. My attempts so far didn't work, with varying results from the view becoming completely invisible to an inability to shrink the window below the size that would fully contain the custom view.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden