Change summary
crates/gpui/src/platform/mac/window.rs | 8 ++++++++
1 file changed, 8 insertions(+)
Detailed changes
@@ -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);