Re: NSSplitView and InterfaceBuilder
Re: NSSplitView and InterfaceBuilder
- Subject: Re: NSSplitView and InterfaceBuilder
- From: Stephane Sudre <email@hidden>
- Date: Tue, 21 Dec 2004 13:02:45 +0100
On 20 déc. 04, at 22:42, Jeremy Dronfield wrote:
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:
+----+
| |
+----+
+------+
| |
+------+
That's what I would have thought, but this is not what I experienced.
[...]
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?
No.
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.
Possibly my case, the first time.
_______________________________________________
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