Constraining a Split View (a different scenario)
Constraining a Split View (a different scenario)
- Subject: Constraining a Split View (a different scenario)
- From: mw <email@hidden>
- Date: Mon, 20 Jan 2003 18:54:15 -0500
Hello everyone,
I have an NSSplitView in my main application window. It is a vertical split
view (the two views contained in the split view are side-by-side). Now, I
already know of the delegate method
splitView:constrainMinCoordinate:ofSubviewAt: which makes it so the split
view can't get any smaller on the x-axis than the value returned, which is
good.
My split view resizes with the resizing of the window (on the right is an
NSTabView with an NSTextView inside of that, both of which have to constrain
to the size of the window). So, here is my question: how do I get it so that
the split view can NEVER become smaller than a given number, whether that be
by resizing the window or resizing the split view itself? The problem I have
come across is that, when the window is resized too small, the contents of
the right pane start to move over and overlap the contents of the left pane
because resizing the window actually causes the split view to resize as
well.
Any suggestions?
mw
_______________________________________________
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.