TextView
public class TextView: NSTextView
The text view for the editor
-
The Connector class
Declaration
Swift
var connector: ChordProEditor.Connector?
-
The delegate for the ChordProEditor
Declaration
Swift
var chordProEditorDelegate: ChordProEditorDelegate?
-
The current fragment of the cursor
Declaration
Swift
var currentFragment: NSTextLayoutFragment?
-
Draw a background behind the current fragment
Declaration
Swift
override public func draw(_ dirtyRect: CGRect)
Parameters
dirtyRect
The current rect of the editor
-
Handle double-click on directives to edit them
Declaration
Swift
override func mouseDown(with event: NSEvent)
Parameters
event
The mouse click event
-
Set the fragment and optional directive of the current cursor location
Declaration
Swift
func setSelectedTextLayoutFragment(selectedRange: NSRange)
Parameters
selectedRange
The current selected range of the text editor