diff --git a/src/AppKit/Enums.cs b/src/AppKit/Enums.cs index b82778ba90..16013bf99e 100644 --- a/src/AppKit/Enums.cs +++ b/src/AppKit/Enums.cs @@ -2198,7 +2198,11 @@ namespace AppKit { GenericPreferencesIcon = 0x70726566, //'pref' GenericQueryDocumentIcon = 0x71657279, //'qery' GenericRamDiskIcon = 0x72616D64, //'ramd' +#if !XAMCORE_4_0 + [Obsolete ("Use 'GenericSharedLibraryIcon' instead.")] GenericSharedLibaryIcon = 0x73686C62, //'shlb' +#endif + GenericSharedLibraryIcon = 0x73686C62, //'shlb' GenericStationeryIcon = 0x73646F63, //'sdoc' GenericSuitcaseIcon = 0x73756974, //'suit' GenericUrlIcon = 0x6775726C, //'gurl' diff --git a/src/scenekit.cs b/src/scenekit.cs index 5378eb9ded..b9c4d4538b 100644 --- a/src/scenekit.cs +++ b/src/scenekit.cs @@ -1213,7 +1213,7 @@ namespace SceneKit { #if MONOMAC [iOS (8,0)] - [Deprecated (PlatformName.MacOSX, 10, 14, message: "OpenGL API deprecated, please use Metal instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Please use Metal instead of OpenGL API.")] [Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using UIKit on macOS.")] [BaseType (typeof (CAOpenGLLayer))] interface SCNLayer : SCNSceneRenderer, SCNTechniqueSupport { @@ -3507,16 +3507,16 @@ namespace SceneKit { bool AllowsCameraControl { get; set; } #if MONOMAC - [Deprecated (PlatformName.MacOSX, 10, 14, message: "OpenGL API deprecated, please use Metal instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Please use Metal instead of OpenGL API.")] [Export ("openGLContext", ArgumentSemantic.Retain)] NSOpenGLContext OpenGLContext { get; set; } - [Deprecated (PlatformName.MacOSX, 10, 14, message: "OpenGL API deprecated, please use Metal instead.")] + [Deprecated (PlatformName.MacOSX, 10, 14, message: "Please use Metal instead of OpenGL API.")] [Export ("pixelFormat", ArgumentSemantic.Retain)] NSOpenGLPixelFormat PixelFormat { get; set; } #elif !WATCH - [Deprecated (PlatformName.iOS, 12, 0, message: "OpenGL API deprecated, please use Metal instead.")] - [Deprecated (PlatformName.TvOS, 12, 0, message: "OpenGL API deprecated, please use Metal instead.")] + [Deprecated (PlatformName.iOS, 12, 0, message: "Please use Metal instead of OpenGL API.")] + [Deprecated (PlatformName.TvOS, 12, 0, message: "Please use Metal instead of OpenGL API.")] [Export ("eaglContext", ArgumentSemantic.Retain)] #if XAMCORE_2_0 EAGLContext EAGLContext { get; set; } diff --git a/tests/introspection/ApiProtocolTest.cs b/tests/introspection/ApiProtocolTest.cs index 19ccc112d5..c0a4217b14 100644 --- a/tests/introspection/ApiProtocolTest.cs +++ b/tests/introspection/ApiProtocolTest.cs @@ -299,6 +299,12 @@ namespace Introspection { break; } break; +#if !XAMCORE_4_0 + case "MTLCounter": + case "MTLCounterSampleBuffer": + case "MTLCounterSet": + return true; // Incorrectly bound, will be fixed for XAMCORE_4_0. +#endif } return false; } diff --git a/tests/introspection/ApiTypoTest.cs b/tests/introspection/ApiTypoTest.cs index aad09889cd..16cb357aab 100644 --- a/tests/introspection/ApiTypoTest.cs +++ b/tests/introspection/ApiTypoTest.cs @@ -145,6 +145,7 @@ namespace Introspection "Cartes", // french "Cavlc", "Cda", // acronym: Clinical Document Architecture + "Cdrom", "Cfa", // acronym: Color Filter Array "Celp", // MPEG4ObjectID "Characterteristic", @@ -386,6 +387,7 @@ namespace Introspection "nint", "Nntps", "Ntlm", + "Nsl", // InternetLocationNslNeighborhoodIcon "Ntsc", "nuint", "Ndef", @@ -436,6 +438,7 @@ namespace Introspection "Prerolls", "Preseti", "Prev", + "Privs", // SharingPrivsNotApplicableIcon "Propogate", "Psec", "Psm", // Protocol/Service Multiplexer @@ -864,6 +867,7 @@ namespace Introspection "Attributest", "Failwith", "Imageimage", + "Libary", "Musthold", "Olus", // Typo, should be 'Bolus', fixed in 'HKInsulinDeliveryReason' "Ostprandial", // Typo, should be 'Postprandial', fixed in 'HKBloodGlucoseMealTime' diff --git a/tests/introspection/Mac/MacApiSelectorTest.cs b/tests/introspection/Mac/MacApiSelectorTest.cs index 9a6663d692..76601a62f3 100644 --- a/tests/introspection/Mac/MacApiSelectorTest.cs +++ b/tests/introspection/Mac/MacApiSelectorTest.cs @@ -694,6 +694,14 @@ namespace Introspection { break; } break; + case "Metal": + switch (type.Name) { + case "MTLCounterSampleBufferDescriptor": + // This whole type is implemented using a different (internal) type, + // and it's the internal type who knows how to respond to the selectors. + return true; + } + break; } return base.Skip (type, selectorName); } diff --git a/tests/monotouch-test/NaturalLanguage/EmbeddingTest.cs b/tests/monotouch-test/NaturalLanguage/EmbeddingTest.cs index b24eb902da..465e10a82f 100644 --- a/tests/monotouch-test/NaturalLanguage/EmbeddingTest.cs +++ b/tests/monotouch-test/NaturalLanguage/EmbeddingTest.cs @@ -22,11 +22,18 @@ namespace MonoTouchFixtures.NaturalLanguage { { TestRuntime.AssertXcodeVersion (11, 0); - using (var e = NLEmbedding.GetWordEmbedding (NLLanguage.English)) { - Assert.NotNull (e, "GetWordEmbedding"); - Assert.Null (e.GetVector ("Xamarin"), "GetVector"); - Assert.False (e.TryGetVector ("Xamarin", out var vector), "TryGetVector"); - Assert.Null (vector, "vector"); + foreach (NLLanguage v in Enum.GetValues (typeof (NLLanguage))) { + if (v == NLLanguage.Unevaluated) + continue; // this is not a value provided by Apple. + + NLEmbedding e = null; + Assert.DoesNotThrow (() => e = NLEmbedding.GetWordEmbedding (v), $"Throws: {v}"); + if (e != null) { + Assert.NotNull (e, "GetWordEmbedding"); + Assert.Null (e.GetVector ("Xamarin"), "GetVector"); + Assert.False (e.TryGetVector ("Xamarin", out var vector), "TryGetVector"); + Assert.Null (vector, "vector"); + } } } #endif