We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7619d6 commit 7ce90c2Copy full SHA for 7ce90c2
druid-shell/src/platform/mac/window.rs
@@ -229,6 +229,13 @@ lazy_static! {
229
extern "C" fn acceptsFirstResponder(_this: &Object, _sel: Sel) -> BOOL {
230
YES
231
}
232
+ decl.add_method(
233
+ sel!(acceptsFirstMouse:),
234
+ acceptsFirstMouse as extern "C" fn(&Object, Sel, id) -> BOOL,
235
+ );
236
+ extern "C" fn acceptsFirstMouse(_this: &Object, _sel: Sel, _nsevent: id) -> BOOL {
237
+ YES
238
+ }
239
decl.add_method(sel!(dealloc), dealloc as extern "C" fn(&Object, Sel));
240
extern "C" fn dealloc(this: &Object, _sel: Sel) {
241
info!("view is dealloc'ed");
0 commit comments