NSControl
class NSControl : NSView
NSControl improved with AsyncNinja
-
Update of ActionChannel
Declaration
Swift
typealias ActionChannelUpdate = (sender: AnyObject?, objectValue: Any?)
-
Channel that contains actions sent by the control
Declaration
Swift
typealias ActionChannel = Channel<ActionChannelUpdate, Void>
-
Makes or returns cached channel. The channel that will have update on each triggering of action
Declaration
Swift
func actionChannel() -> ActionChannel
-
Shortcut that binds block to NSControl event
Declaration
Swift
func onAction<C: ExecutionContext>( context: C, _ block: @escaping (C, AnyObject?, Any?) -> Void)
Parameters
context
context to bind block to
block
block to execute on action on context