MacOS_Base_ViewController

class MacOS_Base_ViewController : NSViewController

This class provides some common tools for all view controllers.

Instance Computed Properties

  • This is an accessor to our app delegate object. READ-ONLY

    Declaration

    Swift

    @objc
    dynamic var appDelegateObject: MacOS_AppDelegate { get }
  • This is an accessor to our shared prefs object.

    Declaration

    Swift

    @objc
    dynamic var prefs: CGA_PersistentPrefs { get }
  • This is the Bluetooth Central Manager instance. Everything goes through this.

    Declaration

    Swift

    @objc
    dynamic var centralManager: RVS_BlueThoth? { get }

Instance Methods

  • This displays a simple alert, with an OK button.

    Declaration

    Swift

    func displayAlert(header inHeader: String, message inMessage: String = "")

    Parameters

    header

    The header to display at the top.

    message

    A String, containing whatever messge is to be displayed below the header.

  • Sets up the various accessibility labels.

    The base implementation is empty.

    Declaration

    Swift

    @objc
    func setUpAccessibility()