[AppKit] Fix issue 4837 by moving the category to be inline. Fixes #4837 (#4875)

* [AppKit] Fix issue 4837 by moving the category to be inline. Fixes #4837

The NSControlEditingSupport needs to be inline to make the use of the
API simpler allowing users to inherit an override the method.

Fixes https://github.com/xamarin/xamarin-macios/issues/4837
This commit is contained in:
Manuel de la Pena 2018-10-10 16:59:22 +02:00 коммит произвёл GitHub
Родитель 80881930c0
Коммит a75c0b9ff7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 10 добавлений и 4 удалений

Просмотреть файл

@ -22678,11 +22678,13 @@ namespace AppKit {
NSPrintRenderingQuality PreferredRenderingQuality { get; }
}
#if !XAMCORE_4_0
[Category, BaseType (typeof (NSResponder))]
partial interface NSControlEditingSupport {
[Mac (10, 7), Export ("validateProposedFirstResponder:forEvent:")]
bool ValidateProposedFirstResponder (NSResponder responder, [NullAllowed] NSEvent forEvent);
}
partial interface NSControlEditingSupport {
[Mac (10, 7), Export ("validateProposedFirstResponder:forEvent:")]
bool ValidateProposedFirstResponder (NSResponder responder, [NullAllowed] NSEvent forEvent);
}
#endif
partial interface NSResponder {
[Mac (10, 7), Export ("wantsScrollEventsForSwipeTrackingOnAxis:")]
@ -22696,6 +22698,10 @@ namespace AppKit {
[Mac (10, 8), Export ("quickLookWithEvent:")]
void QuickLook (NSEvent withEvent);
// From NSControlEditingSupport category. Needs to be here to make the API easier to be used. issue 4837
[Mac (10, 7), Export ("validateProposedFirstResponder:forEvent:")]
bool ValidateProposedFirstResponder (NSResponder responder, [NullAllowed] NSEvent forEvent);
}
[Category, BaseType (typeof (NSResponder))]