Re: Forcing NSSplitView to constrain position?
Re: Forcing NSSplitView to constrain position?
- Subject: Re: Forcing NSSplitView to constrain position?
- From: Tim Hewett <email@hidden>
- Date: Thu, 24 Jun 2004 16:32:31 +0100
Nick,
I hit this snag too. For example if you make the window larger,
take your split view to a minimum constraint limit with the divider,
then make the window smaller, the portions of the split view
reduce in size proportionally and hence the subview which was
at the minimum constraint limit is now actually smaller than it.
All it seems you can do is to use the
splitView:resizeSubviewsWithOldSize:
delegate method and implement your own constraining in it when
the split view's size changes. Works fine for me but it was a PITA.
Tim.
On 24 Jun 2004, at 00:49, email@hidden wrote:
I checked the archives and didn't see an answer to my question...
I have an NSSplitView. The split view has a delegate object that sets a
constraint on the size of the split view by implementing NSSplitView's
-splitView:constrainSplitPosition:obSubviewAt: delegate method. I want
the split view to be constrained to a very specific position. But the
delegate method that returns the constraint is never called unless the
user clicks on the split view divider, and so far the only method I've
found of getting the constraint to take effect is to click on that
divider.
Is there any way to force the split view to comply with its constraint
programmatically, and if there is, how do I do it? I already tried
calling -adjustSubviews and nothing happened. The constraint also seems
to be ignored when the split view is resized.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.