Wrapper
public class Wrapper: NSView, NSTextLayoutManagerDelegate, ChordProEditorDelegate
The macOS editor
A wrapper for
NSScrollView
NSTextView
NSRulerView
-
The
NSTextView
Declaration
Swift
public var textView = TextView()
-
The
NSRulerView
Declaration
Swift
private var lineNumbers = LineNumbersView()
-
Init the
NSView
Declaration
Swift
override init(frame frameRect: NSRect)
Parameters
frameRect
The rect of the
NSView
-
Init the
NSView
Declaration
Swift
required public init?(coder: NSCoder)
Parameters
coder
The
NSCoder
-
Setup the
NSView
Declaration
Swift
private func setup()
-
A delegate function to update a view
Declaration
Swift
func selectionNeedsDisplay()