• 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: Problems with views (specifically NSSplitView)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Problems with views (specifically NSSplitView) (From: Sam Goldman <email@hidden>)

  • Prev by Date: DV Capture
  • Next by Date: Re: Ownership of nib instances
  • Previous by thread: Problems with views (specifically NSSplitView)
  • Next by thread: NSTextView and setFont - bug or feature?
  • Index(es):
    • Date
    • Thread