diff --git a/src/input/macos.rs b/src/input/macos.rs index c905ce6..db29bb9 100644 --- a/src/input/macos.rs +++ b/src/input/macos.rs @@ -94,11 +94,11 @@ pub(crate) fn register_view_class_with_delegate(instance: ); decl.add_method( sel!(textShouldBeginEditing:), - text_should_begin_editing:: as extern "C" fn(&mut Object, Sel, id) -> bool, + text_should_begin_editing:: as extern "C" fn(&mut Object, Sel, id) -> BOOL, ); decl.add_method( sel!(textShouldEndEditing:), - text_should_end_editing:: as extern "C" fn(&mut Object, Sel, id) -> bool, + text_should_end_editing:: as extern "C" fn(&mut Object, Sel, id) -> BOOL, ); }) }