Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCartBlanche <savagesoftware@gmail.com>2019-09-26 14:01:44 +0300
committerCartBlanche <savagesoftware@gmail.com>2019-09-26 14:01:44 +0300
commitcc5f000abfeb405191849a51250853d1ba3d137e (patch)
tree9b2eb9e68d7597722cee7cebe58d5478e8d48c24 /Xamarin.PropertyEditing.Mac
parent0525c4d409e05edec73cc30f185421a7391fe812 (diff)
[Mac] Use Override on ValidateProposedFirstResponder rather than Export.
Diffstat (limited to 'Xamarin.PropertyEditing.Mac')
-rw-r--r--Xamarin.PropertyEditing.Mac/Controls/GroupEditorControl.cs13
1 files changed, 2 insertions, 11 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/GroupEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/GroupEditorControl.cs
index c528866..fc15eb6 100644
--- a/Xamarin.PropertyEditing.Mac/Controls/GroupEditorControl.cs
+++ b/Xamarin.PropertyEditing.Mac/Controls/GroupEditorControl.cs
@@ -128,21 +128,12 @@ namespace Xamarin.PropertyEditing.Mac
FocusRingType = NSFocusRingType.None;
}
- // ValidateProposedFirstResponder is implemented as an extension method so we have to override the hard way (see xamarin-macios/4837)
- [DllImport ("/usr/lib/libobjc.dylib", EntryPoint = "objc_msgSendSuper")]
- public extern static bool bool_objc_msgSendSuper_IntPtr_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2);
-
- static readonly IntPtr selValidateProposedFirstResponder_ForEvent_Handle = ObjCRuntime.Selector.GetHandle ("validateProposedFirstResponder:forEvent:");
-
-
- [Export ("validateProposedFirstResponder:forEvent:")]
- public bool ValidateProposedFirstResponder (NSResponder responder, NSEvent forEvent)
+ public override bool ValidateProposedFirstResponder (NSResponder responder, NSEvent forEvent)
{
if (responder is PropertyButton)
return true;
- bool baseRet = bool_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selValidateProposedFirstResponder_ForEvent_Handle, responder.Handle, forEvent == null ? IntPtr.Zero : forEvent.Handle);
- return true;
+ return base.ValidateProposedFirstResponder (responder, forEvent);
}
}