• 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
NSSplitViewController contents are shifted at first
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSSplitViewController contents are shifted at first


  • Subject: NSSplitViewController contents are shifted at first
  • From: Rick Mann <email@hidden>
  • Date: Fri, 20 May 2016 00:00:14 -0700

I have a Storyboard using autolayout constraints. I have an NSWindowController with an NSSplitViewController as its content view controller. That has two sub controllers. The left one has an NSOutlineView that has top,left,right, and bottom constraints to its containing view, and a width >= 200. The contents come via bindings. The right controller has no views, just the main view.

When the window is first displayed, You can see the two panes, but you can't see the contents of the left pane. If you resize the window vertically a bit, then they snap into position. You can also see that at first, the dot in the middle of the split view slider is not actually in the middle. Once you resize the window a bit, it snaps into the center.

IB doesn't let me set any other constraints on things. I don't know how the various nested view controllers set up the constraints on their views.

Am I missing something? Thanks.

--
Rick Mann
email@hidden



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: NSSplitViewController contents are shifted at first
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: Opening a file but not associating with NSDocument
  • Next by Date: Need advice on a custom run-loop mode
  • Previous by thread: Re: Cocoa-dev Digest, Vol 13, Issue 224
  • Next by thread: Re: NSSplitViewController contents are shifted at first
  • Index(es):
    • Date
    • Thread