Skip to content
fumoboy007 edited this page Nov 27, 2020 · 2 revisions

Label

An AutoLayoutTextView subclass that acts like a label.

public class Label: AutoLayoutTextView

Specifically, it is non-editable, does not draw a background by default, allows vibrancy, etc.

Inheritance

AutoLayoutTextView

Initializers

init(frame:textContainer:)

public override init(frame frameRect: NSRect, textContainer container: NSTextContainer?)

init?(coder:)

public required init?(coder: NSCoder)

Properties

allowsVibrancy

var allowsVibrancy: Bool

drawsBackground

var drawsBackground: Bool

isEditable

var isEditable: Bool

acceptsFirstResponder

var acceptsFirstResponder: Bool

Methods

encode(with:)

public override func encode(with aCoder: NSCoder)

resignFirstResponder()

public override func resignFirstResponder() -> Bool

hitTest(_:)

public override func hitTest(_ point: NSPoint) -> NSView?