MacOS_SplitViewController

class MacOS_SplitViewController : NSSplitViewController

This is the first screen to come up, and contains all the other screens.

  • The discovery navigator side of the screen.

    Declaration

    Swift

    @IBOutlet
    weak var discoveryScreenSplitViewItem: NSSplitViewItem!
  • The details side of the screen.

    Declaration

    Swift

    @IBOutlet
    var peripheralSplitViewItem: NSSplitViewItem!
  • The characteristic split view, which is displayed to the right of the details view.

    Declaration

    Swift

    @IBOutlet
    var characteristicSplitViewItem: NSSplitViewItem!

Base Class Overrides

  • This is called as we load. It simply ensures that we start off with just the simple discovery screen.

    Declaration

    Swift

    override func viewDidLoad()

Instance Methods

  • Calling this, removes both of the right-hand screens, leaving only the device list screen. It also reduces the size of the screen.

    Declaration

    Swift

    func collapseSplit()
  • This allows us to associate a new View Controller with the details side of the split.

    Declaration

    Swift

    func setPeripheralViewController(_ inPeripheralViewController: MacOS_PeripheralViewController? = nil)

    Parameters

    inPeripheralViewController

    The Peripheral View Controller to place there. If nil, or omitted, the placeholder will be set.

  • This allows us to associate a new View Controller with the characteristic details side of the split.

    Declaration

    Swift

    func setCharacteristicViewController(_ inCharacteristicViewController: MacOS_CharacteristicViewController? = nil)

    Parameters

    inCharacteristicViewController

    The Characteristic View Controller to place there. If nil, or omitted, the view will be removed.