• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSSplitView and InterfaceBuilder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSSplitView and InterfaceBuilder
      • From: Stephane Sudre <email@hidden>
References: 
 >NSSplitView and InterfaceBuilder (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: Still doesn't work - Re: Launch failed with error code -2857
  • Next by Date: Leaving some symbols in the executable
  • Previous by thread: NSSplitView and InterfaceBuilder
  • Next by thread: Re: NSSplitView and InterfaceBuilder
  • Index(es):
    • Date
    • Thread