An abstract class that implements the NSEditor and NSEditorRegistration informal protocols required for controller classes.
SDK
- macOS 10.3+
Framework
- App
Kit
Declaration
class NSController : NSObject
An abstract class that implements the NSEditor and NSEditorRegistration informal protocols required for controller classes.
SDK
Framework
class NSController : NSObject
func object Did Begin Editing(NSEditor)
Invoked to inform the receiver that editor
has uncommitted changes that can affect the receiver.
func object Did End Editing(NSEditor)
Invoked to inform the receiver that editor
has committed or discarded its changes.
func commit Editing() -> Bool
Causes the receiver to attempt to commit any pending edits, returning true
if successful or no edits were pending.
func commit Editing(with Delegate: Any?, did Commit: Selector?, context Info: Unsafe Mutable Raw Pointer?)
Attempts to commit any pending changes in known editors of the receiver.
func discard Editing()
Discards any pending changes by registered editors.
var is Editing: Bool
A Boolean value indicating if any editors are registered with the controller.
class NSObject Controller
A controller that can manage an object's properties referenced by key-value paths.