From 4cf19bdf8eba37e68336aca3a743d6514f1a5118 Mon Sep 17 00:00:00 2001 From: Smit Barmase Date: Wed, 10 Sep 2025 00:42:04 +0530 Subject: [PATCH] text content type --- crates/gpui/src/platform/mac/window.rs | 8 ++++++++ 1 file changed, 8 insertions(+) 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);