Interface Builder uses wrong IBOutlet property when connecting NSSplitViewItem to view controller

Originator:craigotis
Number:rdar://17822990 Date Originated:7/27/2014
Status:Closed Resolved:Beta 5
Product:Developers Tools Product Version:Xcode Beta 4 (6A267n)
Classification:Other Bug Reproducible:Always
 
Summary:
Starting in Beta 4 (possibly Beta 3), Interface Builder attempts to connect an NSSplitViewItem to its child NSViewController using the 'controller' outlet. However, this property seems to have been renamed to 'viewController' in the NSSplitViewItem class, but Interface Builder was not updated.

Steps to Reproduce:
1. Start new empty Cocoa project (using storyboards)
2. Add Vertical Split View Controller to storyboard
3. Attach NSWindowController to NSSplitViewController via the "window content" segue
4. Launch app

Expected Results:
App launches with basic split view.

Actual Results:
App launches, but Console displays failed assertions. The first seems to be the root of the issue, the ones that follow are symptoms.

2014-07-27 09:13:28.263 MissingSplitViewOutlet[4921:1615957] Failed to connect (controller) outlet from (NSSplitViewItem) to (NSViewController): missing setter or instance variable
2014-07-27 09:13:28.265 MissingSplitViewOutlet[4921:1615957] *** Assertion failure in -[NSSplitViewController addSplitViewItem:], /SourceCache/AppKit/AppKit-1326.11/Controllers/NSSplitViewController.m:396
2014-07-27 09:13:28.265 MissingSplitViewOutlet[4921:1615957] Failed to set (splitViewItems) user defined inspected property on (NSSplitViewController): Invalid parameter not satisfying: [splitViewItem viewController] != nil

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!