pub fn on_command(
view: &ViewHandle,
selector: &CStr,
action: impl Fn() + 'static,
) -> ViewHandleExpand description
Apply .onCommand(_:perform:).
The selector is an Objective-C one, registered by name.
pub fn on_command(
view: &ViewHandle,
selector: &CStr,
action: impl Fn() + 'static,
) -> ViewHandleApply .onCommand(_:perform:).
The selector is an Objective-C one, registered by name.