Re: Problems with views (specifically NSSplitView)
Re: Problems with views (specifically NSSplitView)
- Subject: Re: Problems with views (specifically NSSplitView)
- From: Scott Herz <email@hidden>
- Date: Thu, 18 Oct 2001 09:45:22 -0700
NSSplitView uses the order of the subviews array in NSView to set itself
up. A MUCH easier way to do this is to select your two TextViews, and
then Layout:Group In: SplitView. It will do the work of figuring out if
the split is horizontal or vertical and set up the ordering correctly.
Bonus points for coming up with a new way to do it in IB though. None of
us had thought of that!
On Wednesday, October 17, 2001, at 08:53 PM, Sam Goldman wrote:
In my Nib, I dragged on customview and selected NSSplitView from the
attributes. Then when I place in two NSTextViews, they get ordered in
the
opposite way.
ASCII visualization:
The way it looks in IB:
+--------------+
| |
| |
| |
| |
| |
+--------------+
| |
| |
+--------------+
The way it looks like in runtime:
+--------------+
| |
| |
+--------------+
| |
| |
| |
| |
| |
+--------------+
It is just weird that it would do this. Also, during runtime, the bar
across
the middle is solid white as opposed to being the same as the window
background. That changes when the window or view is resized, but it
might be
a bug (?).
Thanks,
Sam
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev