MacOS_PreferencesViewController

class MacOS_PreferencesViewController : MacOS_Base_ViewController
extension MacOS_PreferencesViewController: NSTextViewDelegate

This is the Preferences/Settings modal screen.

  • The checkbox that allows scanning to include Peripherals with no names.

    Declaration

    Swift

    @IBOutlet
    weak var allowEmptyNamesCheckbox: NSButton!
  • The checkbox that allows non-connectbale device to be read (or only connectable)

    Declaration

    Swift

    @IBOutlet
    weak var onlyConnectableCheckbox: NSButton!
  • The checkbox that ensures that all linefeeds/carriage returns be sent as a full CRLF pair.

    Declaration

    Swift

    @IBOutlet
    weak var alwaysUseCRLFCheckbox: NSButton!
  • The label for the RSSI slider.

    Declaration

    Swift

    @IBOutlet
    weak var minimumRSSILabel: NSTextFieldCell!
  • The label for the low end of the slider.

    Declaration

    Swift

    @IBOutlet
    weak var minimumRSSIFixedLabel: NSTextFieldCell!
  • The label that displays the current slider value.

    Declaration

    Swift

    @IBOutlet
    weak var rssiValueLabel: NSTextFieldCell!
  • The label for the upper end of the slider.

    Declaration

    Swift

    @IBOutlet
    weak var maximumRSSIFixedLabel: NSTextFieldCell!
  • The slider.

    Declaration

    Swift

    @IBOutlet
    weak var minimumRSSISlider: NSSlider!
  • The label for the filters section.

    Declaration

    Swift

    @IBOutlet
    weak var filterUUIDsLabel: NSTextFieldCell!
  • The label for the devices filter.

    Declaration

    Swift

    @IBOutlet
    weak var deviceFiltersLabel: NSTextFieldCell!
  • The devices text view.

    Declaration

    Swift

    @IBOutlet
    var deviceFilterTextView: NSTextView!
  • The label for the services filter.

    Declaration

    Swift

    @IBOutlet
    weak var serviceFiltersLabel: NSTextFieldCell!
  • The services filter text view.

    Declaration

    Swift

    @IBOutlet
    var serviceFiltersTextView: NSTextView!
  • The label for the characteristic text view.

    Declaration

    Swift

    @IBOutlet
    weak var characteristicsFiltersLabel: NSTextFieldCell!
  • The Characteristic text view.

    Declaration

    Swift

    @IBOutlet
    var characteristicsFiltersTextView: NSTextView!

IBAction Methods

  • Called when the RSSI slider changes value.

    Declaration

    Swift

    @IBAction
    func minimumRSSIChanged(_ inSlider: NSSlider)

    Parameters

    inSlider

    The RSSI slider object.

Base Class Override Methods

  • Called when the view hierachy has loaded.

    Declaration

    Swift

    override func viewDidLoad()
  • Called when the view is about to go away.

    Declaration

    Swift

    override func viewWillDisappear()
  • Sets up all the accessibility items.

    Declaration

    Swift

    override func setUpAccessibility()

Instance Methods

  • Called to force the UI elements and accessibility to update.

    Declaration

    Swift

    @IBAction
    func updateUI(_: Any! = nil)

NSTextViewDelegate Conformance

  • Called when text in one of the text items changes.

    Declaration

    Swift

    func textDidChange(_: Notification)