I have this OSX storyboard-based application that starts with a NSSplitViewController
like this:
This splitViewController
has two viewControllers
: master and detail.
Inside the window I have a NSToolbar
. I dragged a NSProgressIndicator
to that toolbar and Xcode embedded it inside a NSToolbarItem
.
Now I need to create an outlet (not an action as explained on other stackoverflow questions) from the NSProgressIndicator
to some class. First question is which one?
Xcode will not let I create an outlet. I have tried these options:
- dragged from the
ToolbarItem
tomasterController
class file, detailController class file and toNSSplitViewController
class. - dragged from the ToolbarItem to the delegate class.
- dragged from the
NSProgressIndicator
tomasterController
class file,detailController
class file and toNSSplitViewController
class. - dragged from the NSProgressIndicator to the delegate class.
- dragged from both the NSToolbarItem and from the NSProgressIndicator to the Window Controller First Responder.
In all cases dragging does not make a window appear to allow me to create the outlet.
For heavens sake, how do I create an outlet like that? To which class I drag it and how do I do that?