diff --git a/src/appkit.cs b/src/appkit.cs index 3279cb05973a..4cfa7ff7548b 100644 --- a/src/appkit.cs +++ b/src/appkit.cs @@ -28757,7 +28757,15 @@ interface NSSharingCollaborationModeRestriction : NSSecureCoding, NSCopying { string AlertRecoverySuggestionButtonTitle { get; } [Export ("alertRecoverySuggestionButtonLaunchURL", ArgumentSemantic.Copy), NullAllowed] - NSUrl AlertRecoverySuggestionButtonLaunchUrl { get; set; } +#if XAMCORE_5_0 + NSUrl AlertRecoverySuggestionButtonLaunchUrl { get; } +#else + NSUrl AlertRecoverySuggestionButtonLaunchUrl { + get; + [Obsolete ("Do not use, the native class doesn't have this setter.")] + set; + } +#endif [Export ("initWithDisabledMode:")] NativeHandle Constructor (NSSharingCollaborationMode disabledMode); diff --git a/src/mediaextension.cs b/src/mediaextension.cs index 2929a3a370c6..5ce016e11799 100644 --- a/src/mediaextension.cs +++ b/src/mediaextension.cs @@ -513,6 +513,7 @@ interface IMEVideoDecoder {} [NoWatch, NoTV, NoiOS, Mac (15,0), NoMacCatalyst] [Static] interface MEVideoDecoderFields { + [Notification] [Field ("MEVideoDecoderReadyForMoreMediaDataDidChangeNotification")] NSString ReadyForMoreMediaDataDidChangeNotification { get; } } @@ -759,9 +760,11 @@ interface MERawProcessor [Static] interface MERawProcessorFields { + [Notification] [Field ("MERAWProcessorValuesDidChangeNotification")] NSString ValuesDidChangeNotification { get; } + [Notification] [Field ("MERAWProcessorReadyForMoreMediaDataDidChangeNotification")] NSString ReadyForMoreMediaDataDidChangeNotification { get; } } diff --git a/tests/introspection/ApiSelectorTest.cs b/tests/introspection/ApiSelectorTest.cs index c1b4f1cada57..d3e73a2615ce 100644 --- a/tests/introspection/ApiSelectorTest.cs +++ b/tests/introspection/ApiSelectorTest.cs @@ -1051,6 +1051,14 @@ protected virtual bool Skip (Type type, string selectorName) } break; #endif // __MACCATALYST__ +#if !XAMCORE_5_0 + case "NSSharingCollaborationModeRestriction": + switch (selectorName) { + case "setAlertRecoverySuggestionButtonLaunchURL:":// binding mistake + return true; + } + break; +#endif } // old binding mistake @@ -1213,8 +1221,13 @@ void CheckInit (Type t, MethodBase m, string name) if (!init) ReportError ("Selector {0} used on a constructor (not a method) on {1}", name, t.FullName); } else { - if (init) - ReportError ("Selector {0} used on a method (not a constructor) on {1}", name, t.FullName); + if (init) { + var isPubliclyVisible = m.IsPublic || m.IsFamily || m.IsFamilyOrAssembly; + if (isPubliclyVisible || !m.Name.StartsWith ("_Init", StringComparison.Ordinal)) { + // ignore methods that start '_Init' and aren't publicly exposed, they're probably used by manually bound ctors. + ReportError ($"Selector {name} used on the method '{m.Name}' (not a constructor) on {t.FullName}"); + } + } } }