Questions tagged [nssplitviewcontroller]

NSSplitViewController is a View Controller available in Interface Builder since OS X 10.10 that contains split view items (NSSplitViewItem).

NSSplitViewController was designed with the concept of containment: each NSSplitViewItem owns its own NSViewController. This architecture facilitates the separation of logic for each split view item as you are able to develop logic specific to each view in a separate controller.

for more info: NSSplitViewController

38 questions
0
votes
0 answers

supplementalTargetForAction:sender: doesn't get called

I am trying to send an action from a menu item to a child view controller of a NSSplitViewController. As I understand I am supposed to override supplementalTargetForAction:sender: on the splitViewController to provide the child view controller to…
de.
  • 7,068
  • 3
  • 40
  • 69
0
votes
1 answer

Why can't I access an NSTextField object within viewDidLoad()

Why is it that I get a "Unexpectedly found nil while unwrapping an Optional value" error, suggesting the NSTextField object (text1) is not there if I try to update it during the viewDidLoad() of an NSView class? class SplitViewController:…
Roo
  • 259
  • 1
  • 3
  • 15
0
votes
0 answers

Split view controller memory management

I use simple split view controller in my osx application... split item 0 is used for menu and second one is for content (like in slack application). I get memory leak, so need optimizations ... here is what I do when menu item is clicked: partial…
0
votes
1 answer

How can I fix it so that when I add a NSSplitViewController to the storyboard my window isn't collapsed?

When I add a NSSplitViewController to my document-based storyboard like so: It will not respect my minimum content size and collapses instantly. Why is it doing this, is this a bug? And how do I fix it?
Mark
  • 16,906
  • 20
  • 84
  • 117
0
votes
1 answer

Unable to change delegate on NSSplitView

I have a storyboard that contains a main window (with a corresponding MainWindowController class), and a main view (an NSSplitViewController, with corresponding MainViewController class). For certain functionality I am attempting to set the…
0
votes
1 answer

Programmatically changing the views inside NSSplitViewController

From the NSSplitViewController class reference at https://developer.apple.com/library/prerelease/mac/documentation/AppKit/Reference/NSSplitViewController_Class/index.html I understand that it has a property that is an array of objects oftype…
perfopt
  • 65
  • 7
0
votes
1 answer

Setting SplitViewItem's ViewController

Im having trouble setting a nssplitviewcontroller's split view's view controller. I have a reference from the story board and am trying to set the items view controller programmatically: override func viewDidLoad() { dash =…
John
  • 2,410
  • 1
  • 19
  • 33
-2
votes
1 answer

How to fix the postion of splitDividerView in NSSplitViewController

How to fix the postion of splitDividerView in NSSplitViewController I had been search for years,but it doesn't work.Please help,Thanks! Once this app start,the left view width is 150,but still i can resize both of the left and right view by dragging…
JoeJoe
  • 31
  • 6
1 2
3