diff --git a/crates/gpui/src/platform/mac/window.rs b/crates/gpui/src/platform/mac/window.rs index 806e221cfd996aa100aad9e6ad372780b4efc7fd..d7663ec941308ed7b67a3b146ed47bda91633190 100644 --- a/crates/gpui/src/platform/mac/window.rs +++ b/crates/gpui/src/platform/mac/window.rs @@ -304,6 +304,10 @@ unsafe fn build_classes() { sel!(inlinePredictionType), inline_prediction_type_none as extern "C" fn(&Object, Sel) -> NSInteger, ); + decl.add_method( + sel!(textContentType), + return_nil as extern "C" fn(&Object, Sel) -> id, + ); } decl.register() }; @@ -1667,6 +1671,10 @@ extern "C" fn inline_prediction_type_none(_: &Object, _: Sel) -> NSInteger { NSTextInlinePredictionTypeNone } +extern "C" fn return_nil(_: &Object, _: Sel) -> id { + nil +} + extern "C" fn dealloc_window(this: &Object, _: Sel) { unsafe { drop_window_state(this);