Re: NSSplitView and InterfaceBuilder
Re: NSSplitView and InterfaceBuilder
- Subject: Re: NSSplitView and InterfaceBuilder
- From: Jeremy Dronfield <email@hidden>
- Date: Mon, 20 Dec 2004 21:42:57 +0000
On 20 Dec 2004, at 12:11 pm, Stephane Sudre wrote:
Is there any logic in the way views are grouped in a NSSplitView when
you use InterfaceBuilder?
Yes, so far as I can tell it's perfectly logical. So long as the max X
of the left view is less than the min X of the right view, you should
get a vertical split. This happens for me even if the min Y of the left
view is greater than the max Y of the right view - i.e. the left view
is "above" the right view.
For example, this should get a vertical split:
+---+
| |
+---+
+----+
| |
+----+
whereas this should get a horizontal split:
+----+
| |
+----+
+------+
| |
+------+
I have 2 views a NSView and a NSScrollVier.
They are aligned like this:
+----+ +----------+
| | | |
| V | | ScrollV |
| | | |
+----+ +----------+
When I make them subviews of a split view, I end up with a horizontal
split view, which is definitely not what I want and not what could be
guessed from the locations of the views.
Are the views touching? As I said above, I think the max X of the left
view must be *less* than the min X of the right view. If they are
equal, that seems to count as horizontal overlap, and you get a
horizontal split.
Hope this helps. Regards,
Jeremy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden