Skip to main content

on_command

Function on_command 

Source
pub fn on_command(
    view: &ViewHandle,
    selector: &CStr,
    action: impl Fn() + 'static,
) -> ViewHandle
Expand description

Apply .onCommand(_:perform:).

The selector is an Objective-C one, registered by name.