Re: NSSplitView in a separate NSWindowControl doesn't show for some reason

2015-10-25 Thread Nick
Graham, Thank you for your answer. Just to follow up - yes, I tried adding the view as a subview, instead of replacing the content view of the window. But the result was the same - the split view kept losing its arrangesAllSubviews property, whenever the split view was loaded from a different XIB t

Re: NSSplitView in a separate NSWindowControl doesn't show for some reason

2015-10-25 Thread Graham Cox
> On 25 Oct 2015, at 5:51 am, Nick wrote: > > What am I doing wrong? > This:- > self.window.contentView = self.vc.view; > A NSWindow is not itself a NSView, so it needs to have a closely associated view that hosts all the rest of the window’s content. That is the contentView. It should

Re: NSSplitView in a separate NSWindowControl doesn't show for some reason

2015-10-24 Thread Nick
An interesting discovery. I went through all properties one by one in NSSplitView, comparing ones that are set automatically to NSSplitView in a MainMenu.xib and the one that are set automatically in MyViewController.xib. When I load NSSplitView as part of another xib, its property "arrangesAllSubv

NSSplitView in a separate NSWindowControl doesn't show for some reason

2015-10-24 Thread Nick
Hi I am trying to create an NSSplitView-based application. For the sake of modularity, I would like to separate different parts of the app into several view controllers (each has its own xib). The problem is when I add a split view as a child view of NSViewController.view, then load my view contro