From b945c2daaa9551077834b9b02c960962be1453a9 Mon Sep 17 00:00:00 2001 From: Chris Hamons Date: Fri, 22 Jul 2022 16:31:23 -0500 Subject: [PATCH 01/12] [xcode13] Add Foundation from Xcode 13.0 - Based upon https://github.com/xamarin/xamarin-macios/pull/13328 --- src/Foundation/Enum.cs | 16 +- src/Foundation/Enums.cs | 108 ++++ src/Foundation/NSArray.cs | 36 ++ src/Foundation/NSArray_1.cs | 70 ++- src/Foundation/NSMutableArray_1.cs | 8 + src/Foundation/NSMutableOrderedSet_1.cs | 12 + src/Foundation/NSOrderedCollectionChange.cs | 30 + src/Foundation/NSOrderedCollectionChange_1.cs | 44 ++ .../NSOrderedCollectionDifference.cs | 55 ++ .../NSOrderedCollectionDifference_1.cs | 68 +++ src/Foundation/NSOrderedSet.cs | 36 ++ src/Foundation/NSOrderedSet_1.cs | 103 +++- .../MPSGraphTensorData.cs | 4 +- src/foundation.cs | 569 +++++++++++++++++- src/frameworks.sources | 4 + src/generator.cs | 2 +- tests/introspection/ApiProtocolTest.cs | 1 + .../monotouch-test/Foundation/NSArray1Test.cs | 25 + .../NSOrderedCollectionChange1Test.cs | 35 ++ .../NSOrderedCollectionChangeTest.cs | 36 ++ .../NSOrderedCollectionDifference1Test.cs | 29 + .../NSOrderedCollectionDifferenceTest.cs | 29 + tests/monotouch-test/monotouch-test.csproj | 2 +- .../MacCatalyst-Foundation.ignore | 20 +- .../MacCatalyst-Foundation.todo | 147 ----- .../common-Foundation.ignore | 7 +- .../iOS-Foundation.ignore | 15 +- .../iOS-Foundation.todo | 140 ----- .../macOS-Foundation.ignore | 30 +- .../macOS-Foundation.todo | 140 ----- .../tvOS-Foundation.ignore | 15 +- .../tvOS-Foundation.todo | 142 ----- tests/xtro-sharpie/common-Foundation.ignore | 15 +- tests/xtro-sharpie/iOS-Foundation.ignore | 15 +- tests/xtro-sharpie/iOS-Foundation.todo | 145 ----- tests/xtro-sharpie/macOS-Foundation.ignore | 28 - tests/xtro-sharpie/macOS-Foundation.todo | 145 ----- tests/xtro-sharpie/tvOS-Foundation.ignore | 13 - tests/xtro-sharpie/tvOS-Foundation.todo | 146 ----- tests/xtro-sharpie/watchOS-Foundation.todo | 145 ----- 40 files changed, 1289 insertions(+), 1341 deletions(-) create mode 100644 src/Foundation/NSOrderedCollectionChange.cs create mode 100644 src/Foundation/NSOrderedCollectionChange_1.cs create mode 100644 src/Foundation/NSOrderedCollectionDifference.cs create mode 100644 src/Foundation/NSOrderedCollectionDifference_1.cs create mode 100644 tests/monotouch-test/Foundation/NSOrderedCollectionChange1Test.cs create mode 100644 tests/monotouch-test/Foundation/NSOrderedCollectionChangeTest.cs create mode 100644 tests/monotouch-test/Foundation/NSOrderedCollectionDifference1Test.cs create mode 100644 tests/monotouch-test/Foundation/NSOrderedCollectionDifferenceTest.cs diff --git a/src/Foundation/Enum.cs b/src/Foundation/Enum.cs index a719ba2e0ff3..eda536c3b4a4 100644 --- a/src/Foundation/Enum.cs +++ b/src/Foundation/Enum.cs @@ -617,6 +617,7 @@ public enum NSSearchPathDirectory : ulong { ItemReplacementDirectory = 99, AllApplicationsDirectory = 100, AllLibrariesDirectory = 101, + [NoTV, NoWatch] TrashDirectory = 102, } @@ -749,6 +750,10 @@ public enum NSJsonReadingOptions : ulong { MutableContainers = 1, MutableLeaves = 2, FragmentsAllowed = 4, + [Mac (12,0), iOS (15,0), TV (15,0), Watch (8,0), MacCatalyst (15,0)] + Json5Allowed = 8, + [Mac (12,0), iOS (15,0), TV (15,0), Watch (8,0), MacCatalyst (15,0)] + TopLevelDictionaryAssumed = 16, #if !NET [Obsolete ("Use 'FragmentsAllowed. instead.")] AllowFragments = FragmentsAllowed, @@ -880,8 +885,12 @@ public enum NSUrlBookmarkCreationOptions : ulong { PreferFileIDResolution = 1 << 8, MinimalBookmark = 1 << 9, SuitableForBookmarkFile = 1 << 10, + [NoiOS, NoTV, NoWatch] WithSecurityScope = 1 << 11, - SecurityScopeAllowOnlyReadAccess = 1 << 12 + [NoiOS, NoTV, NoWatch] + SecurityScopeAllowOnlyReadAccess = 1 << 12, + [Mac (12,0), iOS (15,0), TV (15,0), Watch (8,0), MacCatalyst (15,0)] + CreationWithoutImplicitSecurityScope = 1 << 29, } [Flags] @@ -889,7 +898,10 @@ public enum NSUrlBookmarkCreationOptions : ulong { public enum NSUrlBookmarkResolutionOptions : ulong { WithoutUI = 1 << 8, WithoutMounting = 1 << 9, + [NoiOS, NoTV, NoWatch] WithSecurityScope = 1 << 10, + [Mac (12,0), iOS (15,0), TV (15,0), Watch (8,0), MacCatalyst (15,0)] + WithoutImplicitStartAccessing = 1 << 15, } [Native] @@ -1305,7 +1317,9 @@ public enum NSMeasurementFormatterUnitOptions : ulong { [Native] public enum NSItemProviderRepresentationVisibility : long { All = 0, + [NoMac] Team = 1, + [NoiOS, NoTV, NoWatch] Group = 2, OwnProcess = 3, } diff --git a/src/Foundation/Enums.cs b/src/Foundation/Enums.cs index 53a65140e5f6..b7fc4ff9e2ff 100644 --- a/src/Foundation/Enums.cs +++ b/src/Foundation/Enums.cs @@ -275,5 +275,113 @@ public enum NSStringEnumerationOptions : ulong SubstringNotRequired = 1uL << 9, Localized = 1uL << 10, } + + [Mac (12,0), TV (15,0), iOS (15,0), MacCatalyst (15, 0), Watch (8,0)] + [Flags] + [Native] + public enum NSAttributedStringFormattingOptions : ulong { + InsertArgumentAttributesWithoutMerging = 1uL << 0, + ApplyReplacementIndexAttribute = 1uL << 1, + } + + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Native] + public enum NSAttributedStringMarkdownInterpretedSyntax : long { + Full = 0, + InlineOnly = 1, + InlineOnlyPreservingWhitespace = 2, + } + + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Native] + public enum NSAttributedStringMarkdownParsingFailurePolicy : long { + Error = 0, + PartiallyParsedIfPossible = 1, + } + + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Native] + public enum NSGrammaticalGender : long { + NotSet = 0, + Feminine, + Masculine, + Neuter, + } + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Native] + public enum NSGrammaticalNumber : long { + NotSet = 0, + Singular, + Zero, + Plural, + PluralTwo, + PluralFew, + PluralMany, + } + + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Native] + public enum NSGrammaticalPartOfSpeech : long { + NotSet = 0, + Determiner, + Pronoun, + Letter, + Adverb, + Particle, + Adjective, + Adposition, + Verb, + Noun, + Conjunction, + Numeral, + Interjection, + Preposition, + Abbreviation, + } + + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Native] + public enum NSInlinePresentationIntent : ulong { + Emphasized = 1uL << 0, + StronglyEmphasized = 1uL << 1, + Code = 1uL << 2, + Strikethrough = 1uL << 5, + SoftBreak = 1uL << 6, + LineBreak = 1uL << 7, + InlineHTML = 1uL << 8, + BlockHTML = 1uL << 9, + } + + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Native] + public enum NSPresentationIntentKind : long { + Paragraph, + Header, + OrderedList, + UnorderedList, + ListItem, + CodeBlock, + BlockQuote, + ThematicBreak, + Table, + TableHeaderRow, + TableRow, + TableCell, + } + + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Native] + public enum NSPresentationIntentTableColumnAlignment : long { + Left, + Center, + Right, + } + + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Native] + public enum NSURLRequestAttribution : ulong { + Developer = 0, + User = 1, + } } diff --git a/src/Foundation/NSArray.cs b/src/Foundation/NSArray.cs index d9b071172bb0..ca79c190ae95 100644 --- a/src/Foundation/NSArray.cs +++ b/src/Foundation/NSArray.cs @@ -27,6 +27,7 @@ using System.Collections.Generic; using System.ComponentModel; using System.Runtime.InteropServices; +using System.Runtime.Versioning; using CoreFoundation; using ObjCRuntime; @@ -37,6 +38,8 @@ namespace Foundation { + public delegate bool NSOrderedCollectionDifferenceEquivalenceTest (NSObject first, NSObject second); + public partial class NSArray { // @@ -429,5 +432,38 @@ public static NSArray From (NSObject[][] items) return null; } } + + static readonly NSOrderedCollectionDifferenceEquivalenceTestProxy static_DiffEquality = DiffEqualityHandler; + + [MonoPInvokeCallback (typeof (NSOrderedCollectionDifferenceEquivalenceTestProxy))] + static bool DiffEqualityHandler (IntPtr block, IntPtr first, IntPtr second) + { + var callback = BlockLiteral.GetTarget (block); + if (callback is not null) { + var nsFirst = Runtime.GetNSObject (first, false); + var nsSecond = Runtime.GetNSObject (second, false); + return callback (nsFirst, nsSecond); + } + return false; + } + +#if !NET + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] +#else + [SupportedOSPlatform ("ios13.0"), SupportedOSPlatform ("tvos13.0"), SupportedOSPlatform ("macos10.15")] +#endif + public NSOrderedCollectionDifference GetDifferenceFromArray (NSArray other, NSOrderedCollectionDifferenceCalculationOptions options, NSOrderedCollectionDifferenceEquivalenceTest equivalenceTest) + { + if (equivalenceTest is null) + throw new ArgumentNullException (nameof (equivalenceTest)); + + var block = new BlockLiteral (); + block.SetupBlock (static_DiffEquality, equivalenceTest); + try { + return Runtime.GetNSObject (_GetDifferenceFromArray (other, options, ref block)); + } finally { + block.CleanupBlock (); + } + } } } diff --git a/src/Foundation/NSArray_1.cs b/src/Foundation/NSArray_1.cs index 5c42361c8e7b..7f9ce349d828 100644 --- a/src/Foundation/NSArray_1.cs +++ b/src/Foundation/NSArray_1.cs @@ -7,6 +7,8 @@ // Copyright 2015, Xamarin Inc. // +#nullable enable + using System; using System.Collections.Generic; using System.Collections; @@ -20,6 +22,9 @@ #endif namespace Foundation { + public delegate bool NSOrderedCollectionDifferenceEquivalenceTest (TValue? first, TValue? second); + internal delegate bool NSOrderedCollectionDifferenceEquivalenceTestProxy (IntPtr blockLiteral, /* NSObject */ IntPtr first, /* NSObject */ IntPtr second); + #if NET [SupportedOSPlatform ("ios")] [SupportedOSPlatform ("maccatalyst")] @@ -42,15 +47,15 @@ internal NSArray (NativeHandle handle) : base (handle) { } - static public NSArray FromNSObjects (params TKey [] items) + static public NSArray? FromNSObjects (params TKey [] items) { - if (items == null) + if (items is null) throw new ArgumentNullException (nameof (items)); return FromNSObjects (items.Length, items); } - static public NSArray FromNSObjects (int count, params TKey [] items) + static public NSArray? FromNSObjects (int count, params TKey [] items) { if (items == null) throw new ArgumentNullException (nameof (items)); @@ -65,7 +70,7 @@ static public NSArray FromNSObjects (int count, params TKey [] items) Marshal.WriteIntPtr (buf, (int)(i * IntPtr.Size), h); } IntPtr ret = NSArray.FromObjects (buf, count); - NSArray arr = Runtime.GetNSObject> (ret); + var arr = Runtime.GetNSObject> (ret); Marshal.FreeHGlobal (buf); return arr; } @@ -89,5 +94,62 @@ public TKey this [nint idx] { return GetItem ((nuint)idx); } } + +#if !NET + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] +#else + [SupportedOSPlatform ("ios13.0"), SupportedOSPlatform ("tvos13.0"), SupportedOSPlatform ("macos10.15")] +#endif + public NSOrderedCollectionDifference? GetDifference (TKey[] other, NSOrderedCollectionDifferenceCalculationOptions options) + => Runtime.GetNSObject > (_GetDifference (NSArray.FromNSObjects (other), options)); + +#if !NET + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] +#else + [SupportedOSPlatform ("ios13.0"), SupportedOSPlatform ("tvos13.0"), SupportedOSPlatform ("macos10.15")] +#endif + public NSOrderedCollectionDifference? GetDifference (TKey[] other) + => Runtime.GetNSObject > (_GetDifference (NSArray.FromNSObjects (other))); + +#if !NET + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] +#else + [SupportedOSPlatform ("ios13.0"), SupportedOSPlatform ("tvos13.0"), SupportedOSPlatform ("macos10.15")] +#endif + public TKey[]? GetArrayByApplyingDifference (NSOrderedCollectionDifference difference) + => NSArray.ArrayFromHandle (_GetArrayByApplyingDifference (difference)); + static readonly NSOrderedCollectionDifferenceEquivalenceTestProxy static_DiffEqualityGeneric = DiffEqualityHandlerGeneric; + + [MonoPInvokeCallback (typeof (NSOrderedCollectionDifferenceEquivalenceTestProxy))] + static bool DiffEqualityHandlerGeneric (IntPtr block, IntPtr first, IntPtr second) + { + var callback = BlockLiteral.GetTarget> (block); + if (callback is not null) { + var nsFirst = Runtime.GetINativeObject (first, false); + var nsSecond = Runtime.GetINativeObject (second, false); + return callback (nsFirst, nsSecond); + } + return false; + } + +#if !NET + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] +#else + [SupportedOSPlatform ("ios13.0"), SupportedOSPlatform ("tvos13.0"), SupportedOSPlatform ("macos10.15")] +#endif + public NSOrderedCollectionDifference? GetDifferenceFromArray (NSArray other, NSOrderedCollectionDifferenceCalculationOptions options, NSOrderedCollectionDifferenceEquivalenceTest equivalenceTest) + { + if (equivalenceTest is null) + throw new ArgumentNullException (nameof (equivalenceTest)); + + var block = new BlockLiteral (); + block.SetupBlock (static_DiffEqualityGeneric, equivalenceTest); + try { + return Runtime.GetNSObject> (_GetDifferenceFromArray (other, options, ref block)); + } finally { + block.CleanupBlock (); + } + } + } } diff --git a/src/Foundation/NSMutableArray_1.cs b/src/Foundation/NSMutableArray_1.cs index faac69e9f2f5..ce74424668ae 100644 --- a/src/Foundation/NSMutableArray_1.cs +++ b/src/Foundation/NSMutableArray_1.cs @@ -198,5 +198,13 @@ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator () return GetEnumerator (); } #endregion + +#if !NET + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] +#else + [SupportedOSPlatform ("ios13.0"), SupportedOSPlatform ("tvos13.0"), SupportedOSPlatform ("macos10.15")] +#endif + public void ApplyDifference (NSOrderedCollectionDifference difference) + => ApplyDifference ((NSOrderedCollectionDifference) difference); } } diff --git a/src/Foundation/NSMutableOrderedSet_1.cs b/src/Foundation/NSMutableOrderedSet_1.cs index ec1ae5301bac..71cc91439f44 100644 --- a/src/Foundation/NSMutableOrderedSet_1.cs +++ b/src/Foundation/NSMutableOrderedSet_1.cs @@ -232,5 +232,17 @@ IEnumerator IEnumerable.GetEnumerator () copy.MinusSet (second); return copy; } + +#if !NET + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] +#else + [SupportedOSPlatform ("ios13.0"), SupportedOSPlatform ("tvos13.0"), SupportedOSPlatform ("macos10.15")] +#endif + public void ApplyDifference (NSOrderedCollectionDifference difference) + { + if (difference is null) + throw new ArgumentNullException (nameof (difference)); + _ApplyDifference (difference.Handle); + } } } diff --git a/src/Foundation/NSOrderedCollectionChange.cs b/src/Foundation/NSOrderedCollectionChange.cs new file mode 100644 index 000000000000..9c9eb84d5ded --- /dev/null +++ b/src/Foundation/NSOrderedCollectionChange.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Collections; +using System.Runtime.InteropServices; +using System.Runtime.Versioning; + +using ObjCRuntime; + +#nullable enable + +namespace Foundation { + +#if !NET + [iOS (13,0), TV (13,0), Mac (10,15), Watch (6,0)] +#else + [SupportedOSPlatform ("ios13.0"), SupportedOSPlatform ("tvos13.0"), SupportedOSPlatform ("macos10.15")] +#endif + public partial class NSOrderedCollectionChange + { + + public static NSOrderedCollectionChange ChangeWithObject (NSObject? anObject, NSCollectionChangeType type, nuint index) + => new NSOrderedCollectionChange (NSOrderedCollectionChange._ChangeWithObject (anObject.GetHandle (), type, index)); + + public static NSOrderedCollectionChange ChangeWithObject (NSObject? anObject, NSCollectionChangeType type, nuint index, nuint associatedIndex) + => new NSOrderedCollectionChange (NSOrderedCollectionChange._ChangeWithObject (anObject.GetHandle (), type, index, associatedIndex)); + + public NSObject? Object => Runtime.GetNSObject (_Object); + + } +} diff --git a/src/Foundation/NSOrderedCollectionChange_1.cs b/src/Foundation/NSOrderedCollectionChange_1.cs new file mode 100644 index 000000000000..78735a72a054 --- /dev/null +++ b/src/Foundation/NSOrderedCollectionChange_1.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using System.Collections; +using System.Runtime.InteropServices; +using System.Runtime.Versioning; + +using ObjCRuntime; + +#nullable enable + +namespace Foundation { + +#if !NET + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] +#else + [SupportedOSPlatform ("ios13.0"), SupportedOSPlatform ("tvos13.0"), SupportedOSPlatform ("macos10.15")] +#endif + [Register (SkipRegistration = true)] + public sealed partial class NSOrderedCollectionChange : NSOrderedCollectionChange + where TKey : class, INativeObject { + + public NSOrderedCollectionChange (NSObject? anObject, NSCollectionChangeType type, nuint index) + : base (anObject, type, index) {} + + public NSOrderedCollectionChange (NSObject? anObject, NSCollectionChangeType type, nuint index, nuint associatedIndex) + : base (anObject, type, index, associatedIndex) {} + + public static NSOrderedCollectionChange ChangeWithObject (TKey? anObject, NSCollectionChangeType type, nuint index) + => new NSOrderedCollectionChange (NSOrderedCollectionChange._ChangeWithObject (anObject.GetHandle (), type, index)); + + public static NSOrderedCollectionChange ChangeWithObject (TKey? anObject, NSCollectionChangeType type, nuint index, nuint associatedIndex) + => new NSOrderedCollectionChange (NSOrderedCollectionChange._ChangeWithObject (anObject.GetHandle (), type, index, associatedIndex)); + + internal NSOrderedCollectionChange (IntPtr handle) : base (handle) { } + + public NSOrderedCollectionChange (TKey? anObject, NSCollectionChangeType type, nuint index) + : base (anObject!.Handle, type, index) {} + + public NSOrderedCollectionChange (TKey? anObject, NSCollectionChangeType type, nuint index, nuint associatedIndex) + : base (anObject!.Handle, type, index, associatedIndex) {} + + public TKey? Object => Runtime.GetINativeObject (_Object, true); + } +} diff --git a/src/Foundation/NSOrderedCollectionDifference.cs b/src/Foundation/NSOrderedCollectionDifference.cs new file mode 100644 index 000000000000..774480d70e97 --- /dev/null +++ b/src/Foundation/NSOrderedCollectionDifference.cs @@ -0,0 +1,55 @@ +#nullable enable +using System; +using System.Collections.Generic; +using System.Collections; +using System.Runtime.InteropServices; +using System.Runtime.Versioning; + +using ObjCRuntime; + +namespace Foundation { + + public delegate NSOrderedCollectionDifference? NSOrderedCollectionDifferenceGetDifferenceHandler (NSOrderedCollectionChange? collectionChange); + +#if !NET + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] +#else + [SupportedOSPlatform ("ios13.0"), SupportedOSPlatform ("tvos13.0"), SupportedOSPlatform ("macos10.15")] +#endif + public partial class NSOrderedCollectionDifference + { + + public NSObject[] Insertions => NSArray.ArrayFromHandle (_Insertions); + + public NSObject[] Removals => NSArray.ArrayFromHandle (_Removals); + + internal delegate NSOrderedCollectionDifference? NSOrderedCollectionDifferenceGetDifferenceHandlerProxy (IntPtr blockLiteral, /* NSOrderedCollectionChange */ IntPtr change); + static readonly NSOrderedCollectionDifferenceGetDifferenceHandlerProxy static_ChangeAllback = GetDiffHandler; + + [MonoPInvokeCallback (typeof (NSOrderedCollectionDifferenceGetDifferenceHandlerProxy))] + static NSOrderedCollectionDifference? GetDiffHandler (IntPtr block, IntPtr change) + { + var callback = BlockLiteral.GetTarget (block); + if (callback is not null) { + var nsChange = Runtime.GetNSObject> (change, false); + return callback (nsChange); + } + return null; + } + + public NSOrderedCollectionDifference? GetDifference (NSOrderedCollectionDifferenceGetDifferenceHandler callback) + { + if (callback is null) + throw new ArgumentNullException (nameof (callback)); + + var block = new BlockLiteral (); + block.SetupBlock (static_ChangeAllback, callback); + try { + return Runtime.GetNSObject (_GetDifference (ref block)); + } finally { + block.CleanupBlock (); + } + } + + } +} diff --git a/src/Foundation/NSOrderedCollectionDifference_1.cs b/src/Foundation/NSOrderedCollectionDifference_1.cs new file mode 100644 index 000000000000..e7e0a5e0b228 --- /dev/null +++ b/src/Foundation/NSOrderedCollectionDifference_1.cs @@ -0,0 +1,68 @@ +// +// This file contains a generic version of NSOrderedCollectionDifference +// +#nullable enable +using System; +using System.Collections.Generic; +using System.Collections; +using System.Runtime.InteropServices; +using System.Runtime.Versioning; + +using ObjCRuntime; + +namespace Foundation { + +#if !NET + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] +#else + [SupportedOSPlatform ("ios13.0"), SupportedOSPlatform ("tvos13.0"), SupportedOSPlatform ("macos10.15")] +#endif + [Register (SkipRegistration = true)] + public sealed partial class NSOrderedCollectionDifference : NSOrderedCollectionDifference + where TKey : class, INativeObject { + + internal NSOrderedCollectionDifference (IntPtr handle) + : base (handle) { } + + public NSOrderedCollectionDifference (NSOrderedCollectionChange[] changes) + : base (changes) {} + + public NSOrderedCollectionDifference (NSIndexSet inserts, TKey[]? insertedObjects, NSIndexSet removes, TKey[]? removedObjects, NSOrderedCollectionChange[] changes) + : base (inserts, NSArray.FromNSObjects (insertedObjects), removes, NSArray.FromNSObjects (removedObjects), changes) {} + + public NSOrderedCollectionDifference (NSIndexSet inserts, TKey[]? insertedObjects, NSIndexSet removes, TKey[]? removedObjects) + : base (inserts, NSArray.FromNSObjects (insertedObjects), removes, NSArray.FromNSObjects (removedObjects)) {} + + public TKey[] Insertions => NSArray.ArrayFromHandle (_Insertions); + + public TKey[] Removals => NSArray.ArrayFromHandle (_Removals); + + static readonly NSOrderedCollectionDifferenceGetDifferenceHandlerProxy static_ChangeAllback = GetDiffHandlerTemplate; + + [MonoPInvokeCallback (typeof (NSOrderedCollectionDifferenceGetDifferenceHandlerProxy))] + static NSOrderedCollectionDifference? GetDiffHandlerTemplate (IntPtr block, IntPtr change) + { + var callback = BlockLiteral.GetTarget (block); + if (callback is not null) { + var nsChange = Runtime.GetNSObject> (change, false); + return callback (nsChange); + } + return null; + } + + public NSOrderedCollectionDifference? GetDifference (NSOrderedCollectionDifferenceGetDifferenceHandler callback) + { + if (callback is null) + throw new ArgumentNullException (nameof (callback)); + + var block = new BlockLiteral (); + block.SetupBlock (static_ChangeAllback, callback); + try { + return Runtime.GetNSObject> (_GetDifference (ref block)); + } finally { + block.CleanupBlock (); + } + } + + } +} diff --git a/src/Foundation/NSOrderedSet.cs b/src/Foundation/NSOrderedSet.cs index 6dd5b518781c..4af0e0210adf 100644 --- a/src/Foundation/NSOrderedSet.cs +++ b/src/Foundation/NSOrderedSet.cs @@ -30,6 +30,7 @@ using System; using System.Collections; using System.Collections.Generic; +using System.Runtime.Versioning; using ObjCRuntime; @@ -193,5 +194,40 @@ public NSMutableOrderedSet (params string [] strings) : this (NSArray.FromString SetObject (value, idx); } } + + delegate bool NSOrderedCollectionDifferenceEquivalenceTestProxy (IntPtr blockLiteral, /* NSObject */ IntPtr first, /* NSObject */ IntPtr second); + static readonly NSOrderedCollectionDifferenceEquivalenceTestProxy static_DiffEquality = DiffEqualityHandler; + + [MonoPInvokeCallback (typeof (NSOrderedCollectionDifferenceEquivalenceTestProxy))] + static bool DiffEqualityHandler (IntPtr block, IntPtr first, IntPtr second) + { + var callback = BlockLiteral.GetTarget (block); + if (callback is not null) { + var nsFirst = Runtime.GetNSObject (first, false); + var nsSecond = Runtime.GetNSObject (second, false); + return callback (nsFirst, nsSecond); + } + return false; + } + +#if !NET + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] +#else + [SupportedOSPlatform ("ios13.0"), SupportedOSPlatform ("tvos13.0"), SupportedOSPlatform ("macos10.15")] +#endif + public NSOrderedCollectionDifference GetDifference (NSOrderedSet other, NSOrderedCollectionDifferenceCalculationOptions options, NSOrderedCollectionDifferenceEquivalenceTest equivalenceTest) + { + if (equivalenceTest is null) + throw new ArgumentNullException (nameof (equivalenceTest)); + + var block = new BlockLiteral (); + block.SetupBlock (static_DiffEquality, equivalenceTest); + try { + return Runtime.GetNSObject (_GetDifference (other, options, ref block)); + } finally { + block.CleanupBlock (); + } + } + } } diff --git a/src/Foundation/NSOrderedSet_1.cs b/src/Foundation/NSOrderedSet_1.cs index f3a6f48c0963..e3b7e33b8ec7 100644 --- a/src/Foundation/NSOrderedSet_1.cs +++ b/src/Foundation/NSOrderedSet_1.cs @@ -6,6 +6,7 @@ // // Copyright 2015, Xamarin Inc. // +#nullable enable using System; using System.Collections.Generic; @@ -61,7 +62,7 @@ public NSOrderedSet (NSMutableOrderedSet other) : base (other) { } - public new TKey this [nint idx] { + public new TKey? this [nint idx] { get { var ret = _GetObject (idx); return Runtime.GetINativeObject (ret, false); @@ -75,7 +76,7 @@ public TKey [] ToArray () public bool Contains (TKey obj) { - if (obj == null) + if (obj is null) throw new ArgumentNullException (nameof (obj)); return _Contains (obj.Handle); @@ -83,25 +84,25 @@ public bool Contains (TKey obj) public nint IndexOf (TKey obj) { - if (obj == null) + if (obj is null) throw new ArgumentNullException (nameof (obj)); return _IndexOf (obj.Handle); } - public TKey FirstObject () + public TKey? FirstObject () { var ret = _FirstObject (); return Runtime.GetINativeObject (ret, false); } - public TKey LastObject () + public TKey? LastObject () { var ret = _LastObject (); return Runtime.GetINativeObject (ret, false); } - public NSSet AsSet () + public NSSet? AsSet () { var ret = _AsSet (); return Runtime.GetINativeObject > (ret, false); @@ -121,11 +122,11 @@ IEnumerator IEnumerable.GetEnumerator () } #endregion - public static NSOrderedSet operator + (NSOrderedSet first, NSOrderedSet second) + public static NSOrderedSet? operator + (NSOrderedSet? first, NSOrderedSet? second) { - if (first == null) - return second != null ? new NSOrderedSet (second) : null; - if (second == null) + if (first is null) + return second is not null ? new NSOrderedSet (second) : null; + if (second is null) return new NSOrderedSet (first); var copy = new NSMutableOrderedSet (first); copy.UnionSet (second); @@ -133,11 +134,11 @@ IEnumerator IEnumerable.GetEnumerator () return copyset; } - public static NSOrderedSet operator + (NSOrderedSet first, NSSet second) + public static NSOrderedSet? operator + (NSOrderedSet? first, NSSet? second) { - if (first == null) - return second != null ? new NSOrderedSet (second) : null; - if (second == null) + if (first is null) + return second is not null ? new NSOrderedSet (second) : null; + if (second is null) return new NSOrderedSet (first); var copy = new NSMutableOrderedSet (first); copy.UnionSet (second); @@ -145,11 +146,11 @@ IEnumerator IEnumerable.GetEnumerator () return copyset; } - public static NSOrderedSet operator - (NSOrderedSet first, NSOrderedSet second) + public static NSOrderedSet? operator - (NSOrderedSet? first, NSOrderedSet? second) { - if (first == null) + if (first is null) return null; - if (second == null) + if (second is null) return new NSOrderedSet (first); var copy = new NSMutableOrderedSet (first); copy.MinusSet (second); @@ -157,11 +158,11 @@ IEnumerator IEnumerable.GetEnumerator () return copyset; } - public static NSOrderedSet operator - (NSOrderedSet first, NSSet second) + public static NSOrderedSet? operator - (NSOrderedSet? first, NSSet? second) { - if (first == null) + if (first is null) return null; - if (second == null) + if (second is null) return new NSOrderedSet (first); var copy = new NSMutableOrderedSet (first); copy.MinusSet (second); @@ -194,7 +195,7 @@ IEnumerator IEnumerable.GetEnumerator () public override bool Equals (object other) { var o = other as NSOrderedSet; - if (o == null) + if (o is null) return false; return IsEqualToOrderedSet (o); } @@ -203,5 +204,65 @@ public override int GetHashCode () { return (int) GetNativeHash (); } + +#if !NET + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] +#else + [SupportedOSPlatform ("ios13.0"), SupportedOSPlatform ("tvos13.0"), SupportedOSPlatform ("macos10.15")] +#endif + public NSOrderedCollectionDifference GetDifference (NSOrderedSet other, NSOrderedCollectionDifferenceCalculationOptions options) + => new NSOrderedCollectionDifference (_GetDifference (other, options)); + +#if !NET + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] +#else + [SupportedOSPlatform ("ios13.0"), SupportedOSPlatform ("tvos13.0"), SupportedOSPlatform ("macos10.15")] +#endif + public NSOrderedCollectionDifference GetDifference (NSOrderedSet other) + => new NSOrderedCollectionDifference (_GetDifference (other)); + +#if !NET + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] +#else + [SupportedOSPlatform ("ios13.0"), SupportedOSPlatform ("tvos13.0"), SupportedOSPlatform ("macos10.15")] +#endif + public NSOrderedSet? GetOrderedSet (NSOrderedCollectionDifference difference) + { + var ptr = _GetOrderedSet (difference); + return Runtime.GetNSObject> (ptr); + } + + static readonly NSOrderedCollectionDifferenceEquivalenceTestProxy static_DiffEqualityGeneric = DiffEqualityHandlerGeneric; + + [MonoPInvokeCallback (typeof (NSOrderedCollectionDifferenceEquivalenceTestProxy))] + static bool DiffEqualityHandlerGeneric (IntPtr block, IntPtr first, IntPtr second) + { + var callback = BlockLiteral.GetTarget> (block); + if (callback is not null) { + var nsFirst = Runtime.GetINativeObject (first, false); + var nsSecond = Runtime.GetINativeObject (second, false); + return callback (nsFirst, nsSecond); + } + return false; + } + +#if !NET + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] +#else + [SupportedOSPlatform ("ios13.0"), SupportedOSPlatform ("tvos13.0"), SupportedOSPlatform ("macos10.15")] +#endif + public NSOrderedCollectionDifference? GetDifference (NSOrderedSet other, NSOrderedCollectionDifferenceCalculationOptions options, NSOrderedCollectionDifferenceEquivalenceTest equivalenceTest) + { + if (equivalenceTest is null) + throw new ArgumentNullException (nameof (equivalenceTest)); + + var block = new BlockLiteral (); + block.SetupBlock (static_DiffEqualityGeneric, equivalenceTest); + try { + return Runtime.GetNSObject> (_GetDifference (other, options, ref block)); + } finally { + block.CleanupBlock (); + } + } } } diff --git a/src/MetalPerformanceShadersGraph/MPSGraphTensorData.cs b/src/MetalPerformanceShadersGraph/MPSGraphTensorData.cs index d56cb13d4e5c..98d608720308 100644 --- a/src/MetalPerformanceShadersGraph/MPSGraphTensorData.cs +++ b/src/MetalPerformanceShadersGraph/MPSGraphTensorData.cs @@ -21,7 +21,9 @@ public static MPSGraphTensorData Create (IMTLDevice device, ReadOnlySpan public static MPSGraphTensorData Create (params MPSImage[] imageBatch) { - return new MPSGraphTensorData (NSArray.FromNSObjects (imageBatch)); + if (imageBatch is null) + ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (imageBatch)); + return new MPSGraphTensorData (NSArray.FromNSObjects (imageBatch)!); } public void Read (Span values) diff --git a/src/foundation.cs b/src/foundation.cs index 1f161041a489..e9cad97cbeae 100644 --- a/src/foundation.cs +++ b/src/foundation.cs @@ -243,6 +243,41 @@ interface NSArray : NSSecureCoding, NSMutableCopying, INSFastEnumeration, CKReco [Export ("arrayWithContentsOfURL:error:")] [return: NullAllowed] NSArray FromUrl (NSUrl url, out NSError error); + + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Internal] + [Export ("differenceFromArray:withOptions:")] + NativeHandle _GetDifference (NSArray other, NSOrderedCollectionDifferenceCalculationOptions options); + + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Wrap ("Runtime.GetNSObject (_GetDifference (NSArray.FromNSObjects (other), options))")] + [return: NullAllowed] + NSOrderedCollectionDifference GetDifference (NSObject[] other, NSOrderedCollectionDifferenceCalculationOptions options); + + [Internal] + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Export ("differenceFromArray:")] + NativeHandle _GetDifference (NSArray other); + + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Wrap ("Runtime.GetNSObject (_GetDifference(NSArray.FromNSObjects (other)))")] + [return: NullAllowed] + NSOrderedCollectionDifference GetDifference (NSObject[] other); + + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Export ("arrayByApplyingDifference:")] + [return: NullAllowed] + NativeHandle _GetArrayByApplyingDifference (NSOrderedCollectionDifference difference); + + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Wrap ("NSArray.ArrayFromHandle (_GetArrayByApplyingDifference (difference))")] + [return: NullAllowed] + NSObject[] GetArrayByApplyingDifference (NSOrderedCollectionDifference difference); + + [Internal] + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Export ("differenceFromArray:withOptions:usingEquivalenceTest:")] + NativeHandle _GetDifferenceFromArray (NSArray other, NSOrderedCollectionDifferenceCalculationOptions options, /* Func block */ ref BlockLiteral block); } #if MONOMAC @@ -619,6 +654,55 @@ partial interface NSAttributedString : NSCoding, NSMutableCopying, NSSecureCodin [Async (ResultTypeName = "NSLoadFromHtmlResult")] [Wrap ("LoadFromHtml (data, options.GetDictionary ()!, completionHandler)")] void LoadFromHtml (NSData data, NSAttributedStringDocumentAttributes options, NSAttributedStringCompletionHandler completionHandler); + + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("initWithContentsOfMarkdownFileAtURL:options:baseURL:error:")] + NativeHandle Constructor (NSUrl markdownFile, [NullAllowed] NSAttributedStringMarkdownParsingOptions options, [NullAllowed] NSUrl baseUrl, [NullAllowed] out NSError error); + + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("initWithMarkdown:options:baseURL:error:")] + NativeHandle Constructor (NSData markdown, [NullAllowed] NSAttributedStringMarkdownParsingOptions options, [NullAllowed] NSUrl baseUrl, [NullAllowed] out NSError error); + + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("initWithMarkdownString:options:baseURL:error:")] + NativeHandle Constructor (string markdownString, [NullAllowed] NSAttributedStringMarkdownParsingOptions options, [NullAllowed] NSUrl baseUrl, [NullAllowed] out NSError error); + + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Export ("attributedStringByInflectingString")] + NSAttributedString AttributedStringByInflectingString { get; } + + } + + // we follow the API found in swift + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + public enum NSAttributedStringNameKey { + + [Field ("NSAlternateDescriptionAttributeName")] + AlternateDescription, + + [Field ("NSImageURLAttributeName")] + ImageUrl, + + [Field ("NSInflectionRuleAttributeName")] + InflectionRule, + + [Field ("NSInflectionAlternativeAttributeName")] + InflectionAlternative, + + [Field ("NSInlinePresentationIntentAttributeName")] + InlinePresentationIntent, + + [Field ("NSLanguageIdentifierAttributeName")] + LanguageIdentifier, + + [Field ("NSMorphologyAttributeName")] + Morphology, + + [Field ("NSPresentationIntentAttributeName")] + PresentationIntentAttributeName, + + [Field ("NSReplacementIndexAttributeName")] + ReplacementIndex, } [NoWatch][NoTV] // really inside WKWebKit @@ -1002,7 +1086,7 @@ interface NSCalendar : NSSecureCoding, NSCopying { interface NSCalendarDate { [Export ("initWithString:calendarFormat:locale:")] [Deprecated (PlatformName.MacOSX, 10, 0)] - NativeHandle Constructor (string description, string calendarFormat, NSObject locale); + NativeHandle Constructor (string description, string calendarFormat, [NullAllowed] NSObject locale); [Export ("initWithString:calendarFormat:")] [Deprecated (PlatformName.MacOSX, 10, 0)] @@ -1056,13 +1140,14 @@ interface NSCalendarDate { [Export ("yearOfCommonEra")] nint YearOfCommonEra { get; } + [NullAllowed] [Deprecated (PlatformName.MacOSX, 10, 0)] [Export ("calendarFormat")] string CalendarFormat { get; set; } [Deprecated (PlatformName.MacOSX, 10, 0)] [Export ("descriptionWithCalendarFormat:locale:")] - string GetDescription (string calendarFormat, NSObject locale); + string GetDescription (string calendarFormat, [NullAllowed] NSObject locale); [Deprecated (PlatformName.MacOSX, 10, 0)] [Export ("descriptionWithCalendarFormat:")] @@ -1070,8 +1155,9 @@ interface NSCalendarDate { [Deprecated (PlatformName.MacOSX, 10, 0)] [Export ("descriptionWithLocale:")] - string GetDescription (NSLocale locale); + string GetDescription ([NullAllowed] NSLocale locale); + [NullAllowed] [Deprecated (PlatformName.MacOSX, 10, 0)] [Export ("timeZone")] NSTimeZone TimeZone { get; set; } @@ -1737,6 +1823,15 @@ interface NSByteCountFormatter { [Export ("stringForObjectValue:")] [return: NullAllowed] string GetString ([NullAllowed] NSObject obj); + + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Static] + [Export ("stringFromMeasurement:countStyle:")] + string StringFromMeasurement (NSUnitInformationStorage measurement, NSByteCountFormatterCountStyle countStyle); + + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Export ("stringFromMeasurement:")] + string Create (NSUnitInformationStorage measurement); } [BaseType (typeof (NSFormatter))] @@ -2300,6 +2395,10 @@ interface NSPersonNameComponentsFormatter [Export ("personNameComponentsFromString:")] [return: NullAllowed] NSPersonNameComponents GetComponents (string @string); + + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [NullAllowed, Export ("locale", ArgumentSemantic.Copy)] + NSLocale Locale { get; set; } } @@ -3635,7 +3734,10 @@ interface NSMutableArray { [iOS (8,0), Mac(10,10)] [Static, Export ("arrayWithContentsOfURL:")] NSMutableArray FromUrl (NSUrl url); - + + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Export ("applyDifference:")] + void ApplyDifference (NSOrderedCollectionDifference difference); } interface NSMutableArray : NSMutableArray {} @@ -4297,7 +4399,7 @@ interface NSExpression : NSSecureCoding, NSCopying { #if !NET && !WATCH [Obsolete("Use 'FromFunction (NSExpressionCallbackHandler, NSExpression[])' instead.")] [Static, Export ("expressionForBlock:arguments:")] - NSExpression FromFunction (NSExpressionHandler target, NSExpression[] parameters); + NSExpression FromFunction (NSExpressionHandler target, [NullAllowed] NSExpression[] parameters); #endif [Static, Export ("expressionForBlock:arguments:")] @@ -4993,7 +5095,7 @@ interface NSRunLoop { [Obsolete ("Use the 'NSRunLoopMode' enum instead.")] [Deprecated (PlatformName.MacOSX, 10, 13, message: "Use 'NSXpcConnection' instead.")] - [NoiOS, NoWatch, NoTV] + [NoiOS, NoWatch, NoTV, MacCatalyst (15,0)] [Field ("NSConnectionReplyMode")] NSString NSRunLoopConnectionReplyMode { get; } @@ -5290,24 +5392,29 @@ interface NSUbiquitousKeyValueStore { [Export ("defaultStore")] NSUbiquitousKeyValueStore DefaultStore { get; } + [return: NullAllowed] [Export ("objectForKey:"), Internal] NSObject ObjectForKey (string aKey); [Export ("setObject:forKey:"), Internal] - void SetObjectForKey (NSObject anObject, string aKey); + void SetObjectForKey ([NullAllowed] NSObject anObject, string aKey); [Export ("removeObjectForKey:")] void Remove (string aKey); + [return: NullAllowed] [Export ("stringForKey:")] string GetString (string aKey); + [return: NullAllowed] [Export ("arrayForKey:")] NSObject [] GetArray (string aKey); + [return: NullAllowed] [Export ("dictionaryForKey:")] NSDictionary GetDictionary (string aKey); + [return: NullAllowed] [Export ("dataForKey:")] NSData GetData (string aKey); @@ -5321,16 +5428,16 @@ interface NSUbiquitousKeyValueStore { bool GetBool (string aKey); [Export ("setString:forKey:"), Internal] - void _SetString (string aString, string aKey); + void _SetString ([NullAllowed] string aString, string aKey); [Export ("setData:forKey:"), Internal] - void _SetData (NSData data, string key); + void _SetData ([NullAllowed] NSData data, string key); [Export ("setArray:forKey:"), Internal] - void _SetArray (NSObject [] array, string key); + void _SetArray ([NullAllowed] NSObject [] array, string key); [Export ("setDictionary:forKey:"), Internal] - void _SetDictionary (NSDictionary aDictionary, string aKey); + void _SetDictionary ([NullAllowed] NSDictionary aDictionary, string aKey); [Export ("setLongLong:forKey:"), Internal] void _SetLong (long value, string aKey); @@ -5373,6 +5480,10 @@ interface NSUuid : NSSecureCoding, NSCopying { [Export ("UUIDString")] string AsString (); + + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("compare:")] + NSComparisonResult Compare (NSUuid otherUuid); } [iOS (8,0)][Mac (10,10), Watch (2,0), TV (9,0)] // .objc_class_name_NSUserActivity", referenced from '' not found @@ -6758,21 +6869,22 @@ interface NSUrlConnection : [Export ("canHandleRequest:")][Static] bool CanHandleRequest (NSUrlRequest request); + [return: NullAllowed] [NoWatch] [Deprecated (PlatformName.iOS, 9,0, message: "Use 'NSUrlSession' instead.")] [Deprecated (PlatformName.MacOSX, 10,11, message: "Use 'NSUrlSession' instead.")] [Export ("connectionWithRequest:delegate:")][Static] - NSUrlConnection FromRequest (NSUrlRequest request, [Protocolize] NSUrlConnectionDelegate connectionDelegate); + NSUrlConnection FromRequest (NSUrlRequest request, [NullAllowed, Protocolize] NSUrlConnectionDelegate connectionDelegate); [Deprecated (PlatformName.iOS, 9,0, message: "Use 'NSUrlSession' instead.")] [Deprecated (PlatformName.MacOSX, 10,11, message: "Use 'NSUrlSession' instead.")] [Export ("initWithRequest:delegate:")] - NativeHandle Constructor (NSUrlRequest request, [Protocolize] NSUrlConnectionDelegate connectionDelegate); + NativeHandle Constructor (NSUrlRequest request, [NullAllowed, Protocolize] NSUrlConnectionDelegate connectionDelegate); [Deprecated (PlatformName.iOS, 9,0, message: "Use 'NSUrlSession' instead.")] [Deprecated (PlatformName.MacOSX, 10,11, message: "Use 'NSUrlSession' instead.")] [Export ("initWithRequest:delegate:startImmediately:")] - NativeHandle Constructor (NSUrlRequest request, [Protocolize] NSUrlConnectionDelegate connectionDelegate, bool startImmediately); + NativeHandle Constructor (NSUrlRequest request, [NullAllowed, Protocolize] NSUrlConnectionDelegate connectionDelegate, bool startImmediately); [Export ("start")] void Start (); @@ -7188,6 +7300,9 @@ partial interface NSUrlSession { [Export ("streamTaskWithHostName:port:")] NSUrlSessionStreamTask CreateBidirectionalStream (string hostname, nint port); + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use the Network.framework instead.")] + [Deprecated (PlatformName.iOS, 15, 0, message: "Use the Network.framework instead.")] + [Deprecated (PlatformName.TvOS, 15, 0, message: "Use the Network.framework instead.")] [NoWatch] [iOS (9,0), Mac(10,11)] [Export ("streamTaskWithNetService:")] @@ -7342,6 +7457,10 @@ partial interface NSUrlSessionTask : NSCopying, NSProgressReporting [Export ("countOfBytesClientExpectsToReceive")] long CountOfBytesClientExpectsToReceive { get; set; } + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [NullAllowed, Export ("delegate", ArgumentSemantic.Retain)] + NSObject WeakDelegate { get; set; } + } [Static] @@ -7978,6 +8097,10 @@ interface NSUrlRequest : NSSecureCoding, NSMutableCopying { [MacCatalyst (14,5)] [Export ("assumesHTTP3Capable")] bool AssumesHttp3Capable { get; [NotImplemented] set; } + + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Export ("attribution")] + NSURLRequestAttribution Attribution { get; } } [BaseType (typeof (NSDictionary))] @@ -8160,6 +8283,10 @@ [New] [Export ("allowsCellularAccess")] [MacCatalyst (14,5)] [Export ("assumesHTTP3Capable")] bool AssumesHttp3Capable { get; set; } + + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Export ("attribution", ArgumentSemantic.Assign)] + NSURLRequestAttribution Attribution { get; set; } } [BaseType (typeof (NSObject), Name="NSURLResponse")] @@ -9363,6 +9490,7 @@ interface NSOrderedSet : NSSecureCoding, NSMutableCopying { IntPtr _FirstObject (); [Export ("firstObject")] + [return: NullAllowed] NSObject FirstObject (); [Internal] @@ -9371,6 +9499,7 @@ interface NSOrderedSet : NSSecureCoding, NSMutableCopying { IntPtr _LastObject (); [Export ("lastObject")] + [return: NullAllowed] NSObject LastObject (); [Export ("isEqualToOrderedSet:")] @@ -9390,6 +9519,42 @@ interface NSOrderedSet : NSSecureCoding, NSMutableCopying { [Export ("reversedOrderedSet")] NSOrderedSet GetReverseOrderedSet (); + + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Wrap ("Runtime.GetNSObject (_GetDifference (other, options))")] + [return: NullAllowed] + NSOrderedCollectionDifference GetDifference (NSOrderedSet other, NSOrderedCollectionDifferenceCalculationOptions options); + + [Internal] + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Export ("differenceFromOrderedSet:withOptions:")] + IntPtr _GetDifference (NSOrderedSet other, NSOrderedCollectionDifferenceCalculationOptions options); + + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Wrap ("Runtime.GetNSObject (_GetDifference (other))")] + [return: NullAllowed] + NSOrderedCollectionDifference GetDifference (NSOrderedSet other); + + [Internal] + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Export ("differenceFromOrderedSet:")] + IntPtr _GetDifference (NSOrderedSet other); + + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Wrap ("Runtime.GetNSObject (_GetOrderedSet (difference))")] + [return: NullAllowed] + NSOrderedSet GetOrderedSet (NSOrderedCollectionDifference difference); + + [Internal] + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Export ("orderedSetByApplyingDifference:")] + [return: NullAllowed] + IntPtr _GetOrderedSet (NSOrderedCollectionDifference difference); + + [Internal] + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Export ("differenceFromOrderedSet:withOptions:usingEquivalenceTest:")] + /* NSOrderedCollectionDifference*/ IntPtr _GetDifference (NSOrderedSet other, NSOrderedCollectionDifferenceCalculationOptions options, /* Func */ ref BlockLiteral block); } interface NSMutableOrderedSet : NSMutableOrderedSet {} @@ -9529,6 +9694,16 @@ interface NSMutableOrderedSet { [Export ("sortRange:options:usingComparator:")] void SortRange (NSRange range, NSSortOptions sortOptions, NSComparator comparator); + + [Internal] + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Export ("applyDifference:")] + void _ApplyDifference (IntPtr difference); + + [Sealed] + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Export ("applyDifference:")] + void ApplyDifference (NSOrderedCollectionDifference difference); } [BaseType (typeof (NSObject))] @@ -9999,6 +10174,10 @@ partial interface NSBundle { [iOS (9,0)] [Export ("setPreservationPriority:forTags:")] void SetPreservationPriority (double priority, NSSet tags); + + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("localizedAttributedStringForKey:value:table:")] + NSAttributedString GetLocalizedAttributedString (string key, [NullAllowed] string value, [NullAllowed] string tableName); } [NoMac] @@ -10585,6 +10764,9 @@ interface NSMutableIndexSet : NSSecureCoding { void RemoveIndexesInRange (NSRange range); } + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use the Network.framework instead.")] + [Deprecated (PlatformName.iOS, 15, 0, message: "Use the Network.framework instead.")] + [Deprecated (PlatformName.TvOS, 15, 0, message: "Use the Network.framework instead.")] [NoWatch] [DisableDefaultCtor] // the instance just crash when trying to call selectors [BaseType (typeof (NSObject), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] { typeof (NSNetServiceDelegate)})] @@ -10633,6 +10815,7 @@ interface NSNetService { [Export ("name", ArgumentSemantic.Copy)] string Name { get; } + [NullAllowed] [Export ("addresses", ArgumentSemantic.Copy)] NSData [] Addresses { get; } @@ -10663,17 +10846,19 @@ interface NSNetService { [Static, Export ("dataFromTXTRecordDictionary:")] NSData DataFromTxtRecord (NSDictionary dictionary); + [NullAllowed] [Export ("hostName", ArgumentSemantic.Copy)] string HostName { get; } [Export ("getInputStream:outputStream:")] bool GetStreams (out NSInputStream inputStream, out NSOutputStream outputStream); + [return: NullAllowed] [Export ("TXTRecordData")] NSData GetTxtRecordData (); [Export ("setTXTRecordData:")] - bool SetTxtRecordData (NSData data); + bool SetTxtRecordData ([NullAllowed] NSData data); //NSData TxtRecordData { get; set; } @@ -10721,6 +10906,9 @@ interface NSNetServiceDelegate { void DidAcceptConnection (NSNetService sender, NSInputStream inputStream, NSOutputStream outputStream); } + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use the Network.framework instead.")] + [Deprecated (PlatformName.iOS, 15, 0, message: "Use the Network.framework instead.")] + [Deprecated (PlatformName.TvOS, 15, 0, message: "Use the Network.framework instead.")] [NoWatch] [BaseType (typeof (NSObject), Delegates=new string [] {"WeakDelegate"}, @@ -11052,6 +11240,7 @@ partial interface NSValue : NSSecureCoding, NSCopying { #if MONOMAC [Export ("rectValue")] #else + [MacCatalyst (15,0)] [Export ("CGRectValue")] #endif CGRect CGRectValue { get; } @@ -11059,6 +11248,7 @@ partial interface NSValue : NSSecureCoding, NSCopying { #if MONOMAC [Export ("sizeValue")] #else + [MacCatalyst (15,0)] [Export ("CGSizeValue")] #endif CGSize CGSizeValue { get; } @@ -11066,6 +11256,7 @@ partial interface NSValue : NSSecureCoding, NSCopying { #if MONOMAC [Export ("pointValue")] #else + [MacCatalyst (15,0)] [Export ("CGPointValue")] #endif CGPoint CGPointValue { get; } @@ -11879,8 +12070,9 @@ interface NSPortMessage { [NoiOS][NoWatch][NoTV][MacCatalyst(15, 0)] [DesignatedInitializer] [Export ("initWithSendPort:receivePort:components:")] - NativeHandle Constructor (NSPort sendPort, NSPort recvPort, NSArray components); + NativeHandle Constructor ([NullAllowed] NSPort sendPort, [NullAllowed] NSPort recvPort, [NullAllowed] NSArray components); + [NullAllowed] [NoiOS][NoWatch][NoTV][MacCatalyst(15, 0)] [Export ("components")] NSArray Components { get; } @@ -11893,10 +12085,12 @@ interface NSPortMessage { [Export ("sendBeforeDate:")] bool SendBefore (NSDate date); + [NullAllowed] [NoiOS][NoWatch][NoTV][MacCatalyst(15, 0)] [Export ("receivePort")] NSPort ReceivePort { get; } + [NullAllowed] [NoiOS][NoWatch][NoTV][MacCatalyst(15, 0)] [Export ("sendPort")] NSPort SendPort { get; } @@ -12048,13 +12242,11 @@ interface NSProcessInfo { [Export ("performExpiringActivityWithReason:usingBlock:")] void PerformExpiringActivity (string reason, Action block); - [NoMac] - [iOS (9,0)] + [iOS (9,0), TV (15,0), MacCatalyst (15,0), Mac (12,0)] [Export ("lowPowerModeEnabled")] bool LowPowerModeEnabled { [Bind ("isLowPowerModeEnabled")] get; } - [NoMac] - [iOS (9,0)] + [iOS (9,0), Mac (12,0)] [Notification] [Field ("NSProcessInfoPowerStateDidChangeNotification")] NSString PowerStateDidChangeNotification { get; } @@ -12254,6 +12446,10 @@ partial interface NSProgress { [Field ("NSProgressFileCompletedCountKey")] NSString FileCompletedCountKey { get; } + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Field ("NSProgressFileOperationKindDuplicating")] + NSString FileOperationKindDuplicatingKey { get; } + [NoiOS][NoMacCatalyst][NoWatch][NoTV] [Field ("NSProgressFileAnimationImageKey")] NSString FileAnimationImageKey { get; } @@ -12958,6 +13154,7 @@ interface NSFileVersion { NSFileVersion GetSpecificVersion (NSUrl url, NSObject persistentIdentifier); [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [return: NullAllowed] [Static] [Export ("addVersionOfItemAtURL:withContentsOfURL:options:error:")] NSFileVersion AddVersion (NSUrl url, NSUrl contentsURL, NSFileVersionAddingOptions options, out NSError outError); @@ -13113,6 +13310,7 @@ interface NSPredicate : NSSecureCoding, NSCopying { [Export ("evaluateWithObject:substitutionVariables:")] bool EvaluateWithObject (NSObject obj, NSDictionary substitutionVariables); + [return: NullAllowed] [Static] [Mac (10, 9)] [NoiOS][NoMacCatalyst][NoWatch][NoTV] @@ -13170,11 +13368,11 @@ interface NSUrlDownload { [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'NSURLSession' instead.")] [Export ("initWithRequest:delegate:")] - NativeHandle Constructor (NSUrlRequest request, NSObject delegate1); + NativeHandle Constructor (NSUrlRequest request, [NullAllowed] NSObject delegate1); [Deprecated (PlatformName.MacOSX, 10, 11, message: "Use 'NSURLSession' instead.")] [Export ("initWithResumeData:delegate:path:")] - NativeHandle Constructor (NSData resumeData, NSObject delegate1, string path); + NativeHandle Constructor (NSData resumeData, [NullAllowed] NSObject delegate1, string path); [Export ("cancel")] void Cancel (); @@ -13185,6 +13383,7 @@ interface NSUrlDownload { [Export ("request")] NSUrlRequest Request { get; } + [NullAllowed] [Export ("resumeData")] NSData ResumeData { get; } @@ -13923,6 +14122,7 @@ interface NSFileProviderService #if MONOMAC partial interface NSFilePresenter { [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [NullAllowed] [Export ("primaryPresentedItemURL")] NSUrl PrimaryPresentedItemUrl { get; } } @@ -13935,6 +14135,7 @@ partial interface NSAttributedString { } [NoiOS][NoMacCatalyst][NoWatch][NoTV] + [Deprecated (PlatformName.MacOSX, 12, 0, message : "Use the Network.framework instead.")] [BaseType (typeof (NSObject))] [DisableDefaultCtor] partial interface NSHost { @@ -13943,23 +14144,26 @@ partial interface NSHost { NSHost _Current { get;} [Static, Internal, Export ("hostWithName:")] - NSHost _FromName (string name); + NSHost _FromName ([NullAllowed] string name); [Static, Internal, Export ("hostWithAddress:")] NSHost _FromAddress (string address); [Export ("isEqualToHost:")] - bool Equals ([NullAllowed] NSHost host); + bool Equals (NSHost host); + [NullAllowed] [Export ("name")] string Name { get; } + [NullAllowed] [Export ("localizedName")] string LocalizedName { get; } [Export ("names")] string [] Names { get; } + [NullAllowed] [Internal, Export ("address")] string _Address { get; } @@ -14003,11 +14207,13 @@ partial interface NSScriptCommand : NSCoding { IntPtr GetCurrentCommand (); [Export ("appleEvent")] + [NullAllowed] NSAppleEventDescriptor AppleEvent { get; } [Export ("executeCommand")] IntPtr Execute (); + [NullAllowed] [Export ("evaluatedReceivers")] NSObject EvaluatedReceivers { get; } } @@ -14042,7 +14248,7 @@ partial interface NSScriptCommandDescription : NSCoding { [Internal] [DesignatedInitializer] [Export ("initWithSuiteName:commandName:dictionary:")] - NativeHandle Constructor (NSString suiteName, NSString commandName, NSDictionary commandDeclaration); + NativeHandle Constructor (NSString suiteName, NSString commandName, [NullAllowed] NSDictionary commandDeclaration); [Internal] [Export ("appleEventClassCode")] @@ -14072,6 +14278,7 @@ partial interface NSScriptCommandDescription : NSCoding { [Export ("isOptionalArgumentWithName:")] bool NSIsOptionalArgument (NSString name); + [return: NullAllowed] [Internal] [Export ("typeForArgumentWithName:")] NSString GetNSTypeForArgument (NSString name); @@ -14080,6 +14287,7 @@ partial interface NSScriptCommandDescription : NSCoding { [Export ("appleEventCodeForReturnType")] int FCCAppleEventCodeForReturnType { get; } + [NullAllowed] [Export ("returnType")] string ReturnType { get; } @@ -14146,6 +14354,7 @@ interface NSAffineTransform : NSSecureCoding, NSCopying { [BaseType (typeof (NSObject))] [DisableDefaultCtor] interface NSConnection { + [return: NullAllowed] [Static, Export ("connectionWithReceivePort:sendPort:")] NSConnection Create ([NullAllowed] NSPort receivePort, [NullAllowed] NSPort sendPort); @@ -14160,24 +14369,29 @@ interface NSConnection { [Export ("removeRunLoop:")] void RemoveRunLoop (NSRunLoop runLoop); + [return: NullAllowed] [Static, Export ("serviceConnectionWithName:rootObject:usingNameServer:")] NSConnection CreateService (string name, NSObject root, NSPortNameServer server); + [return: NullAllowed] [Static, Export ("serviceConnectionWithName:rootObject:")] NSConnection CreateService (string name, NSObject root); [Export ("registerName:")] - bool RegisterName (string name); + bool RegisterName ([NullAllowed] string name); [Export ("registerName:withNameServer:")] - bool RegisterName (string name, NSPortNameServer server); + bool RegisterName ([NullAllowed] string name, NSPortNameServer server); + [NullAllowed] [Export ("rootObject", ArgumentSemantic.Retain)] NSObject RootObject { get; set; } + [return: NullAllowed] [Static, Export ("connectionWithRegisteredName:host:")] NSConnection LookupService (string name, [NullAllowed] string hostName); + [return: NullAllowed] [Static, Export ("connectionWithRegisteredName:host:usingNameServer:")] NSConnection LookupService (string name, [NullAllowed] string hostName, NSPortNameServer server); @@ -14196,6 +14410,7 @@ interface NSConnection { [Export ("localObjects")] NSObject [] LocalObjects { get; } + [NullAllowed] [Static, Export ("currentConversation")] NSObject CurrentConversation { get; } @@ -14300,11 +14515,13 @@ interface NSPortNameServer { [Static, Export ("systemDefaultPortNameServer")] NSPortNameServer SystemDefault { get; } + [return: NullAllowed] [Export ("portForName:")] NSPort GetPort (string portName); + [return: NullAllowed] [Export ("portForName:host:")] - NSPort GetPort (string portName, string hostName); + NSPort GetPort (string portName, [NullAllowed] string hostName); [Export ("registerPort:name:")] bool RegisterPort (NSPort port, string portName); @@ -14663,30 +14880,38 @@ interface NSTask { [DesignatedDefaultCtor] [Advice ("'NSUserNotification' usages should be replaced with 'UserNotifications' framework.")] interface NSUserNotification : NSCoding, NSCopying { + [NullAllowed] [Export ("title", ArgumentSemantic.Copy)] string Title { get; set; } + [NullAllowed] [Export ("subtitle", ArgumentSemantic.Copy)] string Subtitle { get; set; } + [NullAllowed] [Export ("informativeText", ArgumentSemantic.Copy)] string InformativeText { get; set; } [Export ("actionButtonTitle", ArgumentSemantic.Copy)] string ActionButtonTitle { get; set; } + [NullAllowed] [Export ("userInfo", ArgumentSemantic.Copy)] NSDictionary UserInfo { get; set; } + [NullAllowed] [Export ("deliveryDate", ArgumentSemantic.Copy)] NSDate DeliveryDate { get; set; } + [NullAllowed] [Export ("deliveryTimeZone", ArgumentSemantic.Copy)] NSTimeZone DeliveryTimeZone { get; set; } + [NullAllowed] [Export ("deliveryRepeatInterval", ArgumentSemantic.Copy)] NSDateComponents DeliveryRepeatInterval { get; set; } + [NullAllowed] [Export ("actualDeliveryDate")] NSDate ActualDeliveryDate { get; } @@ -14696,6 +14921,7 @@ interface NSUserNotification : NSCoding, NSCopying { [Export ("remote")] bool Remote { [Bind("isRemote")] get; } + [NullAllowed] [Export ("soundName", ArgumentSemantic.Copy)] string SoundName { get; set; } @@ -16650,4 +16876,291 @@ public enum NSFileManagerUnmountOptions : ulong AllPartitionsAndEjectDisk = 1 << 0, WithoutUI = 1 << 1, } + + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [BaseType (typeof (NSObject))] + [DisableDefaultCtor] + interface NSPresentationIntent : NSCopying, NSSecureCoding + { + [Export ("intentKind")] + NSPresentationIntentKind IntentKind { get; } + + [NullAllowed, Export ("parentIntent", ArgumentSemantic.Strong)] + NSPresentationIntent ParentIntent { get; } + + [Static] + [Export ("paragraphIntentWithIdentity:nestedInsideIntent:")] + NSPresentationIntent CreateParagraphIntent (nint identity, [NullAllowed] NSPresentationIntent parent); + + [Static] + [Export ("headerIntentWithIdentity:level:nestedInsideIntent:")] + NSPresentationIntent CreateHeaderIntent (nint identity, nint level, [NullAllowed] NSPresentationIntent parent); + + [Static] + [Export ("codeBlockIntentWithIdentity:languageHint:nestedInsideIntent:")] + NSPresentationIntent CreateCodeBlockIntent (nint identity, [NullAllowed] string languageHint, [NullAllowed] NSPresentationIntent parent); + + [Static] + [Export ("thematicBreakIntentWithIdentity:nestedInsideIntent:")] + NSPresentationIntent CreateThematicBreakIntent (nint identity, [NullAllowed] NSPresentationIntent parent); + + [Static] + [Export ("orderedListIntentWithIdentity:nestedInsideIntent:")] + NSPresentationIntent CreateOrderedListIntent (nint identity, [NullAllowed] NSPresentationIntent parent); + + [Static] + [Export ("unorderedListIntentWithIdentity:nestedInsideIntent:")] + NSPresentationIntent CreateUnorderedListIntent (nint identity, [NullAllowed] NSPresentationIntent parent); + + [Static] + [Export ("listItemIntentWithIdentity:ordinal:nestedInsideIntent:")] + NSPresentationIntent CreateListItemIntent (nint identity, nint ordinal, [NullAllowed] NSPresentationIntent parent); + + [Static] + [Export ("blockQuoteIntentWithIdentity:nestedInsideIntent:")] + NSPresentationIntent CreateBlockQuoteIntent (nint identity, [NullAllowed] NSPresentationIntent parent); + + [Static] + [Export ("tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent:")] + NSPresentationIntent CreateTableIntent (nint identity, nint columnCount, NSNumber[] alignments, [NullAllowed] NSPresentationIntent parent); + + [Static] + [Export ("tableHeaderRowIntentWithIdentity:nestedInsideIntent:")] + NSPresentationIntent CreateTableHeaderRowIntent (nint identity, [NullAllowed] NSPresentationIntent parent); + + [Static] + [Export ("tableRowIntentWithIdentity:row:nestedInsideIntent:")] + NSPresentationIntent CreateTableRowIntent (nint identity, nint row, [NullAllowed] NSPresentationIntent parent); + + [Static] + [Export ("tableCellIntentWithIdentity:column:nestedInsideIntent:")] + NSPresentationIntent CreateTableCellIntent (nint identity, nint column, [NullAllowed] NSPresentationIntent parent); + + [Export ("identity")] + nint Identity { get; } + + [Export ("ordinal")] + nint Ordinal { get; } + + [NullAllowed, Export ("columnAlignments")] + NSNumber[] ColumnAlignments { get; } + + [Export ("columnCount")] + nint ColumnCount { get; } + + [Export ("headerLevel")] + nint HeaderLevel { get; } + + [NullAllowed, Export ("languageHint")] + string LanguageHint { get; } + + [Export ("column")] + nint Column { get; } + + [Export ("row")] + nint Row { get; } + + [Export ("indentationLevel")] + nint IndentationLevel { get; } + + [Export ("isEquivalentToPresentationIntent:")] + bool IsEquivalent (NSPresentationIntent other); + } + + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [BaseType (typeof (NSObject))] + interface NSAttributedStringMarkdownParsingOptions : NSCopying + { + [Export ("allowsExtendedAttributes")] + bool AllowsExtendedAttributes { get; set; } + + [Export ("interpretedSyntax", ArgumentSemantic.Assign)] + NSAttributedStringMarkdownInterpretedSyntax InterpretedSyntax { get; set; } + + [Export ("failurePolicy", ArgumentSemantic.Assign)] + NSAttributedStringMarkdownParsingFailurePolicy FailurePolicy { get; set; } + + [NullAllowed, Export ("languageCode")] + string LanguageCode { get; set; } + } + + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [BaseType (typeof (NSObject))] + [DisableDefaultCtor] + interface NSInflectionRule : NSCopying, NSSecureCoding + { + [Static] + [Export ("automaticRule")] + NSInflectionRule AutomaticRule { get; } + + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0)] + [Static] + [Export ("canInflectLanguage:")] + bool CanInflectLanguage (string language); + + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0)] + [Static] + [Export ("canInflectPreferredLocalization")] + bool CanInflectPreferredLocalization { get; } + } + + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [BaseType (typeof (NSInflectionRule))] + interface NSInflectionRuleExplicit + { + [Export ("initWithMorphology:")] + [DesignatedInitializer] + NativeHandle Constructor (NSMorphology morphology); + + [Export ("morphology", ArgumentSemantic.Copy)] + NSMorphology Morphology { get; } + } + + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [BaseType (typeof (NSObject))] + interface NSMorphology : NSCopying, NSSecureCoding + { + [Export ("grammaticalGender", ArgumentSemantic.Assign)] + NSGrammaticalGender GrammaticalGender { get; set; } + + [Export ("partOfSpeech", ArgumentSemantic.Assign)] + NSGrammaticalPartOfSpeech PartOfSpeech { get; set; } + + [Export ("number", ArgumentSemantic.Assign)] + NSGrammaticalNumber Number { get; set; } + + [Export ("customPronounForLanguage:")] + [return: NullAllowed] + NSMorphologyCustomPronoun GetCustomPronoun (string language); + + [Export ("setCustomPronoun:forLanguage:error:")] + bool SetCustomPronoun ([NullAllowed] NSMorphologyCustomPronoun features, string language, [NullAllowed] out NSError error); + + [Export ("unspecified")] + bool Unspecified { [Bind ("isUnspecified")] get; } + + [Static] + [Export ("userMorphology")] + NSMorphology UserMorphology { get; } + } + + [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15, 0)] + [BaseType (typeof (NSObject))] + interface NSMorphologyCustomPronoun : NSCopying, NSSecureCoding + { + [Static] + [Export ("isSupportedForLanguage:")] + bool IsSupported (string language); + + [Static] + [Export ("requiredKeysForLanguage:")] + string[] GetRequiredKeysForLanguage (string language); + + [NullAllowed, Export ("subjectForm")] + string SubjectForm { get; set; } + + [NullAllowed, Export ("objectForm")] + string ObjectForm { get; set; } + + [NullAllowed, Export ("possessiveForm")] + string PossessiveForm { get; set; } + + [NullAllowed, Export ("possessiveAdjectiveForm")] + string PossessiveAdjectiveForm { get; set; } + + [NullAllowed, Export ("reflexiveForm")] + string ReflexiveForm { get; set; } + } + + interface NSOrderedCollectionChange : NSOrderedCollectionChange {} + + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [BaseType (typeof (NSObject))] + [DisableDefaultCtor] + interface NSOrderedCollectionChange + { + [Internal] + [Static] + [Export ("changeWithObject:type:index:")] + NativeHandle _ChangeWithObject ([NullAllowed] IntPtr anObject, NSCollectionChangeType type, nuint index); + + [Internal] + [Static] + [Export ("changeWithObject:type:index:associatedIndex:")] + NativeHandle _ChangeWithObject ([NullAllowed] IntPtr anObject, NSCollectionChangeType type, nuint index, nuint associatedIndex); + + [Internal] + [NullAllowed, Export ("object", ArgumentSemantic.Strong)] + NativeHandle _Object { get; } + + [Export ("changeType")] + NSCollectionChangeType ChangeType { get; } + + [Export ("index")] + nuint Index { get; } + + [Export ("associatedIndex")] + nuint AssociatedIndex { get; } + + [Internal] + [Export ("initWithObject:type:index:")] + NativeHandle Constructor (IntPtr anObject, NSCollectionChangeType type, nuint index); + + [Wrap ("this (anObject!.Handle, type, index)")] + NativeHandle Constructor ([NullAllowed] NSObject anObject, NSCollectionChangeType type, nuint index); + + [Internal] + [DesignatedInitializer] + [Export ("initWithObject:type:index:associatedIndex:")] + NativeHandle Constructor (IntPtr anObject, NSCollectionChangeType type, nuint index, nuint associatedIndex); + + [Wrap ("this (anObject!.Handle, type, index, associatedIndex)")] + [DesignatedInitializer] + NativeHandle Constructor ([NullAllowed] NSObject anObject, NSCollectionChangeType type, nuint index, nuint associatedIndex); + } + + interface NSOrderedCollectionDifference : NSOrderedCollectionDifference {} + + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [BaseType (typeof (NSObject))] + interface NSOrderedCollectionDifference : INSFastEnumeration + { + [Export ("initWithChanges:")] + NativeHandle Constructor (NSOrderedCollectionChange[] changes); + + [Internal] + [DesignatedInitializer] + [Export ("initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges:")] + NativeHandle Constructor (NSIndexSet inserts, [NullAllowed] NSArray insertedObjects, NSIndexSet removes, [NullAllowed] NSArray removedObjects, NSOrderedCollectionChange[] changes); + + [Wrap ("this (inserts, NSArray.FromNSObjects (insertedObjects), removes, NSArray.FromNSObjects (removedObjects), changes)")] + NativeHandle Constructor (NSIndexSet inserts, [NullAllowed] NSObject[] insertedObjects, NSIndexSet removes, [NullAllowed] NSObject[] removedObjects, NSOrderedCollectionChange[] changes); + + [Internal] + [Export ("initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:")] + NativeHandle Constructor (NSIndexSet inserts, [NullAllowed] NSArray insertedObjects, NSIndexSet removes, [NullAllowed] NSArray removedObjects); + + [Wrap ("this (inserts, NSArray.FromNSObjects (insertedObjects), removes, NSArray.FromNSObjects (removedObjects))")] + NativeHandle Constructor (NSIndexSet inserts, [NullAllowed] NSObject[] insertedObjects, NSIndexSet removes, [NullAllowed] NSObject[] removedObjects); + + [Internal] + [Export ("insertions", ArgumentSemantic.Strong)] + NativeHandle _Insertions { get; } + + [Internal] + [Export ("removals", ArgumentSemantic.Strong)] + NativeHandle _Removals { get; } + + [Export ("hasChanges")] + bool HasChanges { get; } + + [Internal] + [Export ("differenceByTransformingChangesWithBlock:")] + NativeHandle _GetDifference (/* Func, NSOrderedCollectionChange>*/ ref BlockLiteral block); + + [Internal] + [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] + [Export ("inverseDifference")] + NativeHandle _InverseDifference (); + } } diff --git a/src/frameworks.sources b/src/frameworks.sources index bb73b099be6b..a7d90a042494 100644 --- a/src/frameworks.sources +++ b/src/frameworks.sources @@ -790,6 +790,10 @@ FOUNDATION_SOURCES = \ Foundation/NSBundleResourceRequest.cs \ Foundation/NSCalendar.cs \ Foundation/NSCoder.cs \ + Foundation/NSOrderedCollectionChange.cs \ + Foundation/NSOrderedCollectionChange_1.cs \ + Foundation/NSOrderedCollectionDifference.cs \ + Foundation/NSOrderedCollectionDifference_1.cs \ Foundation/NSConnection.cs \ Foundation/NSData.cs \ Foundation/NSDate.cs \ diff --git a/src/generator.cs b/src/generator.cs index 70ff456333a9..0da00cc98258 100644 --- a/src/generator.cs +++ b/src/generator.cs @@ -1802,7 +1802,7 @@ public TrampolineInfo MakeTrampoline (Type t) } var rt = mi.ReturnType; - var rts = IsNativeEnum (rt) ? "var" : rt.ToString (); + var rts = IsNativeEnum (rt) ? "var" : RenderType (rt); var trampoline_name = MakeTrampolineName (t); var ti = new TrampolineInfo (userDelegate: FormatType (null, t), delegateName: "D" + trampoline_name, diff --git a/tests/introspection/ApiProtocolTest.cs b/tests/introspection/ApiProtocolTest.cs index b4375790a284..011670f378b8 100644 --- a/tests/introspection/ApiProtocolTest.cs +++ b/tests/introspection/ApiProtocolTest.cs @@ -432,6 +432,7 @@ protected virtual bool Skip (Type type, string protocolName) case "QLPreviewReply": // conformance not in headers case "QLPreviewReplyAttachment": // conformance not in headers case "SNTimeDurationConstraint": // Conformance not in headers + case "NSInflectionRule": // Xcode 13.3 case "SRWristDetection": // Conformance not in headers case "HMAccessorySetupPayload": // Conformance not in headers diff --git a/tests/monotouch-test/Foundation/NSArray1Test.cs b/tests/monotouch-test/Foundation/NSArray1Test.cs index 7f14655e4952..df700c7b2285 100644 --- a/tests/monotouch-test/Foundation/NSArray1Test.cs +++ b/tests/monotouch-test/Foundation/NSArray1Test.cs @@ -16,6 +16,8 @@ using Foundation; +#nullable enable + namespace MonoTouchFixtures.Foundation { [TestFixture] [Preserve (AllMembers = true)] @@ -93,5 +95,28 @@ public void FromNSObjectsNullTest () Assert.AreSame (str3, arr [2], "NSArray indexer"); } } + + [Test] + public void GetDifferenceFromArrayTest () + { + TestRuntime.AssertXcodeVersion (13,0); + using var str1 = (NSString) "1"; + using var str2 = (NSString) "1"; + using var str3 = (NSString) "1"; + + using var array1 = NSArray.FromObjects (str1, str2); + using var array2 = NSArray.FromObjects (str1, str3); + NSOrderedCollectionDifference? diff = null; + Assert.DoesNotThrow (() => { + diff = array1.GetDifferenceFromArray (array2, + NSOrderedCollectionDifferenceCalculationOptions.OmitInsertedObjects, + (first, second) => { + var firstStr = (NSString) first; + var secondStr = (NSString) second; + return first.ToString ().Equals (second.ToString ()); + }); + }, "Not throws"); + Assert.NotNull (diff, "Not null"); + } } } diff --git a/tests/monotouch-test/Foundation/NSOrderedCollectionChange1Test.cs b/tests/monotouch-test/Foundation/NSOrderedCollectionChange1Test.cs new file mode 100644 index 000000000000..2eebcaf25520 --- /dev/null +++ b/tests/monotouch-test/Foundation/NSOrderedCollectionChange1Test.cs @@ -0,0 +1,35 @@ +using System; + +using NUnit.Framework; + +using Foundation; + +namespace MonoTouchFixtures.Foundation { + [TestFixture] + [Preserve (AllMembers = true)] + public class NSOrderedCollectionChange1Test { + + [Test] + public void ChangeWithObjectTest () + { + TestRuntime.AssertXcodeVersion (13,0); + + var str = new NSString ("Test"); + var change = NSOrderedCollectionChange.ChangeWithObject (str, NSCollectionChangeType.Insert, 0); + Assert.AreEqual (str, change.Object, "Content"); + Assert.AreEqual ((nuint)0, change.Index, "Index"); + } + + [Test] + public void ChangeWithObjectWithAssociatedIndexTest () + { + TestRuntime.AssertXcodeVersion (13,0); + + var str = new NSString ("Test"); + var change = NSOrderedCollectionChange.ChangeWithObject (str, NSCollectionChangeType.Insert, 0, 1); + Assert.AreEqual (str, change.Object, "Content"); + Assert.AreEqual ((nuint)0, change.Index, "Index"); + Assert.AreEqual ((nuint)1, change.AssociatedIndex); + } + } +} diff --git a/tests/monotouch-test/Foundation/NSOrderedCollectionChangeTest.cs b/tests/monotouch-test/Foundation/NSOrderedCollectionChangeTest.cs new file mode 100644 index 000000000000..6c6f55099f33 --- /dev/null +++ b/tests/monotouch-test/Foundation/NSOrderedCollectionChangeTest.cs @@ -0,0 +1,36 @@ +using System; + +using NUnit.Framework; + +using Foundation; + +namespace MonoTouchFixtures.Foundation { + [TestFixture] + [Preserve (AllMembers = true)] + public class NSOrderedCollectionChangeTest { + + [Test] + public void ChangeWithObjectTest () + { + TestRuntime.AssertXcodeVersion (13,0); + + using var str = new NSString ("Test"); + using var change = NSOrderedCollectionChange.ChangeWithObject (str, NSCollectionChangeType.Insert, 0); + Assert.AreEqual (str, change.Object, "Content"); + Assert.AreEqual ((nuint)0, change.Index, "Index"); + } + + [Test] + public void ChangeWithObjectTestWithAssociatedindex () + { + TestRuntime.AssertXcodeVersion (13,0); + + using var str = new NSString ("Test"); + using var change = NSOrderedCollectionChange.ChangeWithObject (str, NSCollectionChangeType.Insert, 0, 1); + Assert.AreEqual (str, change.Object, "Content"); + Assert.AreEqual ((nuint)0, change.Index, "Index"); + Assert.AreEqual ((nuint)1, change.AssociatedIndex); + } + + } +} diff --git a/tests/monotouch-test/Foundation/NSOrderedCollectionDifference1Test.cs b/tests/monotouch-test/Foundation/NSOrderedCollectionDifference1Test.cs new file mode 100644 index 000000000000..ba23b26e6d48 --- /dev/null +++ b/tests/monotouch-test/Foundation/NSOrderedCollectionDifference1Test.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections; +using System.Collections.Generic; + +using NUnit.Framework; + +using Foundation; + +namespace MonoTouchFixtures.Foundation { + [TestFixture] + [Preserve (AllMembers = true)] + public class NSOrderedCollectionDifference1Test { + + [Test] + public void InsertionsAndRemovalsTest () + { + using var data = new NSString ("Foo"); + using var change = NSOrderedCollectionChange.ChangeWithObject (data, NSCollectionChangeType.Insert, 0); + var changes = new NSOrderedCollectionChange [] { change }; + using var diff = new NSOrderedCollectionDifference (changes); + Assert.DoesNotThrow (() => { + var i = diff.Insertions; + }); + Assert.DoesNotThrow (() => { + var r = diff.Removals; + }); + } + } +} diff --git a/tests/monotouch-test/Foundation/NSOrderedCollectionDifferenceTest.cs b/tests/monotouch-test/Foundation/NSOrderedCollectionDifferenceTest.cs new file mode 100644 index 000000000000..7b2d7d4a9660 --- /dev/null +++ b/tests/monotouch-test/Foundation/NSOrderedCollectionDifferenceTest.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections; +using System.Collections.Generic; + +using NUnit.Framework; + +using Foundation; + +namespace MonoTouchFixtures.Foundation { + [TestFixture] + [Preserve (AllMembers = true)] + public class NSOrderedCollectionDifferenceTest { + + [Test] + public void InsertionsAndRemovalsTest () + { + using var data = new NSString ("Foo"); + using var change = NSOrderedCollectionChange.ChangeWithObject (data, NSCollectionChangeType.Insert, 0); + var changes = new NSOrderedCollectionChange [] { change }; + using var diff = new NSOrderedCollectionDifference (changes); + Assert.DoesNotThrow (() => { + var i = diff.Insertions; + }); + Assert.DoesNotThrow (() => { + var r = diff.Removals; + }); + } + } +} diff --git a/tests/monotouch-test/monotouch-test.csproj b/tests/monotouch-test/monotouch-test.csproj index 19e77aa2b97f..e450af0409c5 100644 --- a/tests/monotouch-test/monotouch-test.csproj +++ b/tests/monotouch-test/monotouch-test.csproj @@ -399,7 +399,7 @@ - + diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.ignore index ab42cecc40c1..a5d317a5ee04 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.ignore @@ -467,10 +467,6 @@ !missing-selector! NSXMLNode::detach not bound !missing-selector! NSXMLNode::init not bound !unknown-native-enum! NSNotificationFlags bound -!missing-null-allowed! 'System.Void Foundation.NSPortMessage::.ctor(Foundation.NSPort,Foundation.NSPort,Foundation.NSArray)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSPortMessage::.ctor(Foundation.NSPort,Foundation.NSPort,Foundation.NSArray)' is missing an [NullAllowed] on parameter #1 -!missing-null-allowed! 'System.Void Foundation.NSPortMessage::.ctor(Foundation.NSPort,Foundation.NSPort,Foundation.NSArray)' is missing an [NullAllowed] on parameter #2 -!missing-null-allowed! 'Foundation.NSArray Foundation.NSPortMessage::get_Components()' is missing an [NullAllowed] on return type ## XPC not supported (just like XM) !missing-selector! NSXPCInterface::interfaceForSelector:argumentIndex:ofReply: not bound @@ -486,24 +482,12 @@ ## protocol itself since it's subclassed !missing-protocol-member! NSPortDelegate::handlePortMessage: not found -## Null allowed also missing in XM -!missing-null-allowed! 'Foundation.NSAppleEventDescriptor Foundation.NSScriptCommand::get_AppleEvent()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSObject Foundation.NSScriptCommand::get_EvaluatedReceivers()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSString Foundation.NSScriptCommandDescription::GetNSTypeForArgument(Foundation.NSString)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.String Foundation.NSScriptCommandDescription::get_ReturnType()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.Void Foundation.NSScriptCommandDescription::.ctor(Foundation.NSString,Foundation.NSString,Foundation.NSDictionary)' is missing an [NullAllowed] on parameter #2 -!missing-null-allowed! 'Foundation.NSPort Foundation.NSPortMessage::get_ReceivePort()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSPort Foundation.NSPortMessage::get_SendPort()' is missing an [NullAllowed] on return type - -## Only reference is deprecated and not used in Catalyst +# results in compilation errors, the types are not present and the objc code will fail !missing-pinvoke! NSFileTypeForHFSTypeCode is not bound - -## Deprecated and none of its selectors had documented availability !missing-protocol! NSUserNotificationCenterDelegate not bound - -## Ignored in macOS and header files indicate NSCoding protocol !extra-designated-initializer! NSScriptCommand::initWithCoder: is incorrectly decorated with an [DesignatedInitializer] attribute +# we expose the Uikit verisons ## Also exported under iOS selectors (i.e. CGRectValue) !missing-selector! NSValue::pointValue not bound !missing-selector! NSValue::rectValue not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.todo index 3a95b1430cb5..79e471f01b6c 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.todo @@ -1,155 +1,8 @@ -!deprecated-attribute-missing! NSNetService missing a [Deprecated] attribute -!deprecated-attribute-missing! NSNetServiceBrowser missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLSession::streamTaskWithNetService: missing a [Deprecated] attribute -!missing-enum! NSAttributedStringFormattingOptions not bound -!missing-enum! NSAttributedStringMarkdownInterpretedSyntax not bound -!missing-enum! NSAttributedStringMarkdownParsingFailurePolicy not bound -!missing-enum! NSGrammaticalGender not bound -!missing-enum! NSGrammaticalNumber not bound -!missing-enum! NSGrammaticalPartOfSpeech not bound -!missing-enum! NSInlinePresentationIntent not bound -!missing-enum! NSPresentationIntentKind not bound -!missing-enum! NSPresentationIntentTableColumnAlignment not bound -!missing-enum! NSURLRequestAttribution not bound -!missing-enum-value! NSJsonReadingOptions native value NSJSONReadingJSON5Allowed = 8 not bound -!missing-enum-value! NSJsonReadingOptions native value NSJSONReadingTopLevelDictionaryAssumed = 16 not bound -!missing-enum-value! NSUrlBookmarkCreationOptions native value NSURLBookmarkCreationWithoutImplicitSecurityScope = 536870912 not bound -!missing-enum-value! NSUrlBookmarkResolutionOptions native value NSURLBookmarkResolutionWithoutImplicitStartAccessing = 32768 not bound -!missing-field! NSAlternateDescriptionAttributeName not bound -!missing-field! NSImageURLAttributeName not bound -!missing-field! NSInflectionAlternativeAttributeName not bound -!missing-field! NSInflectionRuleAttributeName not bound -!missing-field! NSInlinePresentationIntentAttributeName not bound -!missing-field! NSLanguageIdentifierAttributeName not bound -!missing-field! NSMorphologyAttributeName not bound -!missing-field! NSPresentationIntentAttributeName not bound -!missing-field! NSProgressFileOperationKindDuplicating not bound -!missing-field! NSReplacementIndexAttributeName not bound -!missing-null-allowed! 'Foundation.NSData Foundation.NSUbiquitousKeyValueStore::GetData(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSDictionary Foundation.NSUbiquitousKeyValueStore::GetDictionary(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSExpression Foundation.NSExpression::FromFunction(Foundation.NSExpressionCallbackHandler,Foundation.NSExpression[])' is missing an [NullAllowed] on parameter #1 -!missing-null-allowed! 'Foundation.NSObject Foundation.NSUbiquitousKeyValueStore::ObjectForKey(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSObject[] Foundation.NSUbiquitousKeyValueStore::GetArray(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.String Foundation.NSUbiquitousKeyValueStore::GetString(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetArray(Foundation.NSObject[],System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetData(Foundation.NSData,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetDictionary(Foundation.NSDictionary,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetString(System.String,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::SetObjectForKey(Foundation.NSObject,System.String)' is missing an [NullAllowed] on parameter #0 !missing-selector! +NSAttributedString::localizedAttributedStringWithFormat: not bound !missing-selector! +NSAttributedString::localizedAttributedStringWithFormat:options: not bound -!missing-selector! +NSByteCountFormatter::stringFromMeasurement:countStyle: not bound -!missing-selector! +NSInflectionRule::automaticRule not bound -!missing-selector! +NSInflectionRule::canInflectLanguage: not bound -!missing-selector! +NSInflectionRule::canInflectPreferredLocalization not bound -!missing-selector! +NSMorphology::userMorphology not bound -!missing-selector! +NSMorphologyCustomPronoun::isSupportedForLanguage: not bound -!missing-selector! +NSMorphologyCustomPronoun::requiredKeysForLanguage: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound -!missing-selector! +NSPresentationIntent::blockQuoteIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::codeBlockIntentWithIdentity:languageHint:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::headerIntentWithIdentity:level:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::listItemIntentWithIdentity:ordinal:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::orderedListIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::paragraphIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableCellIntentWithIdentity:column:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableHeaderRowIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableRowIntentWithIdentity:row:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::thematicBreakIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::unorderedListIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! NSArray::arrayByApplyingDifference: not bound -!missing-selector! NSArray::differenceFromArray: not bound -!missing-selector! NSArray::differenceFromArray:withOptions: not bound -!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSAttributedString::attributedStringByInflectingString not bound -!missing-selector! NSAttributedString::initWithContentsOfMarkdownFileAtURL:options:baseURL:error: not bound !missing-selector! NSAttributedString::initWithFormat:options:locale: not bound !missing-selector! NSAttributedString::initWithFormat:options:locale:arguments: not bound -!missing-selector! NSAttributedString::initWithMarkdown:options:baseURL:error: not bound -!missing-selector! NSAttributedString::initWithMarkdownString:options:baseURL:error: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::allowsExtendedAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::failurePolicy not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::init not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::interpretedSyntax not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::languageCode not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAllowsExtendedAttributes: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setFailurePolicy: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setInterpretedSyntax: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setLanguageCode: not bound -!missing-selector! NSBundle::localizedAttributedStringForKey:value:table: not bound -!missing-selector! NSByteCountFormatter::stringFromMeasurement: not bound -!missing-selector! NSInflectionRuleExplicit::initWithMorphology: not bound -!missing-selector! NSInflectionRuleExplicit::morphology not bound -!missing-selector! NSMorphology::customPronounForLanguage: not bound -!missing-selector! NSMorphology::grammaticalGender not bound -!missing-selector! NSMorphology::isUnspecified not bound -!missing-selector! NSMorphology::number not bound -!missing-selector! NSMorphology::partOfSpeech not bound -!missing-selector! NSMorphology::setCustomPronoun:forLanguage:error: not bound -!missing-selector! NSMorphology::setGrammaticalGender: not bound -!missing-selector! NSMorphology::setNumber: not bound -!missing-selector! NSMorphology::setPartOfSpeech: not bound -!missing-selector! NSMorphologyCustomPronoun::objectForm not bound -!missing-selector! NSMorphologyCustomPronoun::possessiveAdjectiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::possessiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::reflexiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::setObjectForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setPossessiveAdjectiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setPossessiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setReflexiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setSubjectForm: not bound -!missing-selector! NSMorphologyCustomPronoun::subjectForm not bound -!missing-selector! NSMutableArray::applyDifference: not bound !missing-selector! NSMutableAttributedString::appendLocalizedFormat: not bound -!missing-selector! NSMutableOrderedSet::applyDifference: not bound -!missing-selector! NSMutableURLRequest::attribution not bound -!missing-selector! NSMutableURLRequest::setAttribution: not bound -!missing-selector! NSOrderedCollectionChange::associatedIndex not bound -!missing-selector! NSOrderedCollectionChange::changeType not bound -!missing-selector! NSOrderedCollectionChange::index not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound -!missing-selector! NSOrderedCollectionChange::object not bound -!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound -!missing-selector! NSOrderedCollectionDifference::hasChanges not bound -!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound -!missing-selector! NSOrderedCollectionDifference::insertions not bound -!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound -!missing-selector! NSOrderedCollectionDifference::removals not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound -!missing-selector! NSPersonNameComponentsFormatter::locale not bound -!missing-selector! NSPersonNameComponentsFormatter::setLocale: not bound -!missing-selector! NSPresentationIntent::column not bound -!missing-selector! NSPresentationIntent::columnAlignments not bound -!missing-selector! NSPresentationIntent::columnCount not bound -!missing-selector! NSPresentationIntent::headerLevel not bound -!missing-selector! NSPresentationIntent::identity not bound -!missing-selector! NSPresentationIntent::indentationLevel not bound -!missing-selector! NSPresentationIntent::intentKind not bound -!missing-selector! NSPresentationIntent::isEquivalentToPresentationIntent: not bound -!missing-selector! NSPresentationIntent::languageHint not bound -!missing-selector! NSPresentationIntent::ordinal not bound -!missing-selector! NSPresentationIntent::parentIntent not bound -!missing-selector! NSPresentationIntent::row not bound -!missing-selector! NSURLRequest::attribution not bound -!missing-selector! NSURLSessionTask::delegate not bound -!missing-selector! NSURLSessionTask::setDelegate: not bound -!missing-selector! NSUUID::compare: not bound -!missing-type! NSAttributedStringMarkdownParsingOptions not bound -!missing-type! NSInflectionRule not bound -!missing-type! NSInflectionRuleExplicit not bound -!missing-type! NSMorphology not bound -!missing-type! NSMorphologyCustomPronoun not bound -!missing-type! NSOrderedCollectionChange not bound -!missing-type! NSOrderedCollectionDifference not bound -!missing-type! NSPresentationIntent not bound !extra-enum-value! Managed value 2 for NSItemProviderRepresentationVisibility.Group is available for the current platform while the value in the native header is not !deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute !deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore index 749abf5f9b2d..599a1bf02b8c 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore @@ -4,6 +4,7 @@ !missing-protocol-conformance! NSDictionary should conform to NSFastEnumeration !missing-protocol-conformance! NSEnumerator should conform to NSFastEnumeration !missing-protocol-conformance! NSOrderedSet should conform to NSFastEnumeration +!missing-protocol-conformance! NSOrderedCollectionDifference should conform to NSFastEnumeration !missing-protocol-conformance! NSSet should conform to NSFastEnumeration ## untyped enums (only values, not type name) NSError.h @@ -1055,8 +1056,6 @@ !missing-null-allowed! 'Foundation.NSObject Foundation.NSObject::ValueForKey(Foundation.NSString)' is missing an [NullAllowed] on return type !missing-null-allowed! 'Foundation.NSObject Foundation.NSObject::ValueForKeyPath(Foundation.NSString)' is missing an [NullAllowed] on return type !missing-null-allowed! 'Foundation.NSObject Foundation.NSObject::ValueForUndefinedKey(Foundation.NSString)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSObject Foundation.NSOrderedSet::FirstObject()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSObject Foundation.NSOrderedSet::LastObject()' is missing an [NullAllowed] on return type !missing-null-allowed! 'Foundation.NSObject Foundation.NSPropertyListSerialization::PropertyListWithData(Foundation.NSData,Foundation.NSPropertyListReadOptions,Foundation.NSPropertyListFormat&,Foundation.NSError&)' is missing an [NullAllowed] on return type !missing-null-allowed! 'Foundation.NSObject Foundation.NSPropertyListSerialization::PropertyListWithStream(Foundation.NSInputStream,Foundation.NSPropertyListReadOptions,Foundation.NSPropertyListFormat&,Foundation.NSError&)' is missing an [NullAllowed] on return type !missing-null-allowed! 'Foundation.NSObject Foundation.NSSet::get_AnyObject()' is missing an [NullAllowed] on return type @@ -1373,3 +1372,7 @@ ## the apple docs state that it does accept null: https://developer.apple.com/documentation/foundation/nsurl/1572047-urlwithstring ## An NSURL object initialized with URLString. If the URL string was malformed or nil, returns nil. !extra-null-allowed! 'Foundation.NSUrl Foundation.NSUrl::FromString(System.String)' has a extraneous [NullAllowed] on parameter #0 + +# not exposed to users. +!extra-null-allowed! 'ObjCRuntime.NativeHandle Foundation.NSArray::_GetDifferenceFromArray(Foundation.NSArray,Foundation.NSOrderedCollectionDifferenceCalculationOptions,ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #2 +!extra-null-allowed! 'ObjCRuntime.NativeHandle Foundation.NSOrderedCollectionDifference::_GetDifference(ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #0 \ No newline at end of file diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore index 65543524479d..dbc3e5102c68 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore @@ -5,17 +5,4 @@ !missing-selector! NSXPCInterface::setInterface:forSelector:argumentIndex:ofReply: not bound ## does not exists in iOS as a type - but some API refers to it (messy) -!unknown-type! NSPortMessage bound - -# Initial result from new rule missing-null-allowed -!missing-null-allowed! 'Foundation.NSData Foundation.NSUbiquitousKeyValueStore::GetData(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSDictionary Foundation.NSUbiquitousKeyValueStore::GetDictionary(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSExpression Foundation.NSExpression::FromFunction(Foundation.NSExpressionCallbackHandler,Foundation.NSExpression[])' is missing an [NullAllowed] on parameter #1 -!missing-null-allowed! 'Foundation.NSObject Foundation.NSUbiquitousKeyValueStore::ObjectForKey(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSObject[] Foundation.NSUbiquitousKeyValueStore::GetArray(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.String Foundation.NSUbiquitousKeyValueStore::GetString(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetArray(Foundation.NSObject[],System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetData(Foundation.NSData,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetDictionary(Foundation.NSDictionary,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetString(System.String,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::SetObjectForKey(Foundation.NSObject,System.String)' is missing an [NullAllowed] on parameter #0 +!unknown-type! NSPortMessage bound \ No newline at end of file diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo index 1011cf8437f5..ed44f1b2304f 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo @@ -1,148 +1,8 @@ -!deprecated-attribute-missing! NSNetService missing a [Deprecated] attribute -!deprecated-attribute-missing! NSNetServiceBrowser missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLSession::streamTaskWithNetService: missing a [Deprecated] attribute -!missing-enum! NSAttributedStringFormattingOptions not bound -!missing-enum! NSAttributedStringMarkdownInterpretedSyntax not bound -!missing-enum! NSAttributedStringMarkdownParsingFailurePolicy not bound -!missing-enum! NSGrammaticalGender not bound -!missing-enum! NSGrammaticalNumber not bound -!missing-enum! NSGrammaticalPartOfSpeech not bound -!missing-enum! NSInlinePresentationIntent not bound -!missing-enum! NSPresentationIntentKind not bound -!missing-enum! NSPresentationIntentTableColumnAlignment not bound -!missing-enum! NSURLRequestAttribution not bound -!missing-enum-value! NSJsonReadingOptions native value NSJSONReadingJSON5Allowed = 8 not bound -!missing-enum-value! NSJsonReadingOptions native value NSJSONReadingTopLevelDictionaryAssumed = 16 not bound -!missing-enum-value! NSUrlBookmarkCreationOptions native value NSURLBookmarkCreationWithoutImplicitSecurityScope = 536870912 not bound -!missing-enum-value! NSUrlBookmarkResolutionOptions native value NSURLBookmarkResolutionWithoutImplicitStartAccessing = 32768 not bound -!missing-field! NSAlternateDescriptionAttributeName not bound -!missing-field! NSImageURLAttributeName not bound -!missing-field! NSInflectionAlternativeAttributeName not bound -!missing-field! NSInflectionRuleAttributeName not bound -!missing-field! NSInlinePresentationIntentAttributeName not bound -!missing-field! NSLanguageIdentifierAttributeName not bound -!missing-field! NSMorphologyAttributeName not bound -!missing-field! NSPresentationIntentAttributeName not bound -!missing-field! NSProgressFileOperationKindDuplicating not bound -!missing-field! NSReplacementIndexAttributeName not bound !missing-selector! +NSAttributedString::localizedAttributedStringWithFormat: not bound !missing-selector! +NSAttributedString::localizedAttributedStringWithFormat:options: not bound -!missing-selector! +NSByteCountFormatter::stringFromMeasurement:countStyle: not bound -!missing-selector! +NSInflectionRule::automaticRule not bound -!missing-selector! +NSInflectionRule::canInflectLanguage: not bound -!missing-selector! +NSInflectionRule::canInflectPreferredLocalization not bound -!missing-selector! +NSMorphology::userMorphology not bound -!missing-selector! +NSMorphologyCustomPronoun::isSupportedForLanguage: not bound -!missing-selector! +NSMorphologyCustomPronoun::requiredKeysForLanguage: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound -!missing-selector! +NSPresentationIntent::blockQuoteIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::codeBlockIntentWithIdentity:languageHint:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::headerIntentWithIdentity:level:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::listItemIntentWithIdentity:ordinal:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::orderedListIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::paragraphIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableCellIntentWithIdentity:column:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableHeaderRowIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableRowIntentWithIdentity:row:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::thematicBreakIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::unorderedListIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! NSArray::arrayByApplyingDifference: not bound -!missing-selector! NSArray::differenceFromArray: not bound -!missing-selector! NSArray::differenceFromArray:withOptions: not bound -!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSAttributedString::attributedStringByInflectingString not bound -!missing-selector! NSAttributedString::initWithContentsOfMarkdownFileAtURL:options:baseURL:error: not bound !missing-selector! NSAttributedString::initWithFormat:options:locale: not bound !missing-selector! NSAttributedString::initWithFormat:options:locale:arguments: not bound -!missing-selector! NSAttributedString::initWithMarkdown:options:baseURL:error: not bound -!missing-selector! NSAttributedString::initWithMarkdownString:options:baseURL:error: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::allowsExtendedAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::failurePolicy not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::init not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::interpretedSyntax not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::languageCode not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAllowsExtendedAttributes: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setFailurePolicy: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setInterpretedSyntax: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setLanguageCode: not bound -!missing-selector! NSBundle::localizedAttributedStringForKey:value:table: not bound -!missing-selector! NSByteCountFormatter::stringFromMeasurement: not bound -!missing-selector! NSInflectionRuleExplicit::initWithMorphology: not bound -!missing-selector! NSInflectionRuleExplicit::morphology not bound -!missing-selector! NSMorphology::customPronounForLanguage: not bound -!missing-selector! NSMorphology::grammaticalGender not bound -!missing-selector! NSMorphology::isUnspecified not bound -!missing-selector! NSMorphology::number not bound -!missing-selector! NSMorphology::partOfSpeech not bound -!missing-selector! NSMorphology::setCustomPronoun:forLanguage:error: not bound -!missing-selector! NSMorphology::setGrammaticalGender: not bound -!missing-selector! NSMorphology::setNumber: not bound -!missing-selector! NSMorphology::setPartOfSpeech: not bound -!missing-selector! NSMorphologyCustomPronoun::objectForm not bound -!missing-selector! NSMorphologyCustomPronoun::possessiveAdjectiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::possessiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::reflexiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::setObjectForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setPossessiveAdjectiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setPossessiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setReflexiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setSubjectForm: not bound -!missing-selector! NSMorphologyCustomPronoun::subjectForm not bound -!missing-selector! NSMutableArray::applyDifference: not bound !missing-selector! NSMutableAttributedString::appendLocalizedFormat: not bound -!missing-selector! NSMutableOrderedSet::applyDifference: not bound -!missing-selector! NSMutableURLRequest::attribution not bound -!missing-selector! NSMutableURLRequest::setAttribution: not bound -!missing-selector! NSOrderedCollectionChange::associatedIndex not bound -!missing-selector! NSOrderedCollectionChange::changeType not bound -!missing-selector! NSOrderedCollectionChange::index not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound -!missing-selector! NSOrderedCollectionChange::object not bound -!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound -!missing-selector! NSOrderedCollectionDifference::hasChanges not bound -!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound -!missing-selector! NSOrderedCollectionDifference::insertions not bound -!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound -!missing-selector! NSOrderedCollectionDifference::removals not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound -!missing-selector! NSPersonNameComponentsFormatter::locale not bound -!missing-selector! NSPersonNameComponentsFormatter::setLocale: not bound -!missing-selector! NSPresentationIntent::column not bound -!missing-selector! NSPresentationIntent::columnAlignments not bound -!missing-selector! NSPresentationIntent::columnCount not bound -!missing-selector! NSPresentationIntent::headerLevel not bound -!missing-selector! NSPresentationIntent::identity not bound -!missing-selector! NSPresentationIntent::indentationLevel not bound -!missing-selector! NSPresentationIntent::intentKind not bound -!missing-selector! NSPresentationIntent::isEquivalentToPresentationIntent: not bound -!missing-selector! NSPresentationIntent::languageHint not bound -!missing-selector! NSPresentationIntent::ordinal not bound -!missing-selector! NSPresentationIntent::parentIntent not bound -!missing-selector! NSPresentationIntent::row not bound -!missing-selector! NSURLRequest::attribution not bound -!missing-selector! NSURLSessionTask::delegate not bound -!missing-selector! NSURLSessionTask::setDelegate: not bound -!missing-selector! NSUUID::compare: not bound -!missing-type! NSAttributedStringMarkdownParsingOptions not bound -!missing-type! NSInflectionRule not bound -!missing-type! NSInflectionRuleExplicit not bound -!missing-type! NSMorphology not bound -!missing-type! NSMorphologyCustomPronoun not bound -!missing-type! NSOrderedCollectionChange not bound -!missing-type! NSOrderedCollectionDifference not bound -!missing-type! NSPresentationIntent not bound -!extra-enum-value! Managed value 1024 for NSUrlBookmarkResolutionOptions.WithSecurityScope is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 2 for NSItemProviderRepresentationVisibility.Group is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 2048 for NSUrlBookmarkCreationOptions.WithSecurityScope is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 4096 for NSUrlBookmarkCreationOptions.SecurityScopeAllowOnlyReadAccess is available for the current platform while the value in the native header is not !deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute !deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute !missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.ignore index c329722cb7d2..2965f94289b7 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.ignore @@ -577,32 +577,4 @@ !missing-selector! NSXMLDTD::init not bound !missing-selector! NSXMLDTDNode::init not bound !missing-selector! NSXMLNode::detach not bound -!missing-selector! NSXMLNode::init not bound - -# Initial result from new rule missing-null-allowed -!missing-null-allowed! 'Foundation.NSAppleEventDescriptor Foundation.NSScriptCommand::get_AppleEvent()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSArray Foundation.NSPortMessage::get_Components()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSData Foundation.NSUbiquitousKeyValueStore::GetData(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSData Foundation.NSUrlDownload::get_ResumeData()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSDictionary Foundation.NSUbiquitousKeyValueStore::GetDictionary(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSExpression Foundation.NSExpression::FromFunction(Foundation.NSExpressionCallbackHandler,Foundation.NSExpression[])' is missing an [NullAllowed] on parameter #1 -!missing-null-allowed! 'Foundation.NSFileVersion Foundation.NSFileVersion::AddVersion(Foundation.NSUrl,Foundation.NSUrl,Foundation.NSFileVersionAddingOptions,Foundation.NSError&)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSObject Foundation.NSScriptCommand::get_EvaluatedReceivers()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSObject Foundation.NSUbiquitousKeyValueStore::ObjectForKey(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSObject[] Foundation.NSUbiquitousKeyValueStore::GetArray(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSPort Foundation.NSPortMessage::get_ReceivePort()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSPort Foundation.NSPortMessage::get_SendPort()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSPredicate Foundation.NSPredicate::FromMetadataQueryString(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSString Foundation.NSScriptCommandDescription::GetNSTypeForArgument(Foundation.NSString)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSUrl Foundation.NSFilePresenter::get_PrimaryPresentedItemUrl()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.String Foundation.NSScriptCommandDescription::get_ReturnType()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.String Foundation.NSUbiquitousKeyValueStore::GetString(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.Void Foundation.NSPortMessage::.ctor(Foundation.NSPort,Foundation.NSPort,Foundation.NSArray)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSPortMessage::.ctor(Foundation.NSPort,Foundation.NSPort,Foundation.NSArray)' is missing an [NullAllowed] on parameter #1 -!missing-null-allowed! 'System.Void Foundation.NSPortMessage::.ctor(Foundation.NSPort,Foundation.NSPort,Foundation.NSArray)' is missing an [NullAllowed] on parameter #2 -!missing-null-allowed! 'System.Void Foundation.NSScriptCommandDescription::.ctor(Foundation.NSString,Foundation.NSString,Foundation.NSDictionary)' is missing an [NullAllowed] on parameter #2 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetArray(Foundation.NSObject[],System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetData(Foundation.NSData,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetDictionary(Foundation.NSDictionary,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetString(System.String,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::SetObjectForKey(Foundation.NSObject,System.String)' is missing an [NullAllowed] on parameter #0 +!missing-selector! NSXMLNode::init not bound \ No newline at end of file diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo index bedfef1ee7bd..f5aa1aa8ad98 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo @@ -1,148 +1,8 @@ -!deprecated-attribute-missing! NSHost missing a [Deprecated] attribute -!deprecated-attribute-missing! NSNetService missing a [Deprecated] attribute -!deprecated-attribute-missing! NSNetServiceBrowser missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLSession::streamTaskWithNetService: missing a [Deprecated] attribute -!missing-enum! NSAttributedStringFormattingOptions not bound -!missing-enum! NSAttributedStringMarkdownInterpretedSyntax not bound -!missing-enum! NSAttributedStringMarkdownParsingFailurePolicy not bound -!missing-enum! NSGrammaticalGender not bound -!missing-enum! NSGrammaticalNumber not bound -!missing-enum! NSGrammaticalPartOfSpeech not bound -!missing-enum! NSInlinePresentationIntent not bound -!missing-enum! NSPresentationIntentKind not bound -!missing-enum! NSPresentationIntentTableColumnAlignment not bound -!missing-enum! NSURLRequestAttribution not bound -!missing-enum-value! NSJsonReadingOptions native value NSJSONReadingJSON5Allowed = 8 not bound -!missing-enum-value! NSJsonReadingOptions native value NSJSONReadingTopLevelDictionaryAssumed = 16 not bound -!missing-enum-value! NSUrlBookmarkCreationOptions native value NSURLBookmarkCreationWithoutImplicitSecurityScope = 536870912 not bound -!missing-enum-value! NSUrlBookmarkResolutionOptions native value NSURLBookmarkResolutionWithoutImplicitStartAccessing = 32768 not bound -!missing-field! NSAlternateDescriptionAttributeName not bound -!missing-field! NSImageURLAttributeName not bound -!missing-field! NSInflectionAlternativeAttributeName not bound -!missing-field! NSInflectionRuleAttributeName not bound -!missing-field! NSInlinePresentationIntentAttributeName not bound -!missing-field! NSLanguageIdentifierAttributeName not bound -!missing-field! NSMorphologyAttributeName not bound -!missing-field! NSPresentationIntentAttributeName not bound -!missing-field! NSProcessInfoPowerStateDidChangeNotification not bound -!missing-field! NSProgressFileOperationKindDuplicating not bound -!missing-field! NSReplacementIndexAttributeName not bound !missing-selector! +NSAttributedString::localizedAttributedStringWithFormat: not bound !missing-selector! +NSAttributedString::localizedAttributedStringWithFormat:options: not bound -!missing-selector! +NSByteCountFormatter::stringFromMeasurement:countStyle: not bound -!missing-selector! +NSInflectionRule::automaticRule not bound -!missing-selector! +NSInflectionRule::canInflectLanguage: not bound -!missing-selector! +NSInflectionRule::canInflectPreferredLocalization not bound -!missing-selector! +NSMorphology::userMorphology not bound -!missing-selector! +NSMorphologyCustomPronoun::isSupportedForLanguage: not bound -!missing-selector! +NSMorphologyCustomPronoun::requiredKeysForLanguage: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound -!missing-selector! +NSPresentationIntent::blockQuoteIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::codeBlockIntentWithIdentity:languageHint:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::headerIntentWithIdentity:level:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::listItemIntentWithIdentity:ordinal:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::orderedListIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::paragraphIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableCellIntentWithIdentity:column:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableHeaderRowIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableRowIntentWithIdentity:row:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::thematicBreakIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::unorderedListIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! NSArray::arrayByApplyingDifference: not bound -!missing-selector! NSArray::differenceFromArray: not bound -!missing-selector! NSArray::differenceFromArray:withOptions: not bound -!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSAttributedString::attributedStringByInflectingString not bound -!missing-selector! NSAttributedString::initWithContentsOfMarkdownFileAtURL:options:baseURL:error: not bound !missing-selector! NSAttributedString::initWithFormat:options:locale: not bound !missing-selector! NSAttributedString::initWithFormat:options:locale:arguments: not bound -!missing-selector! NSAttributedString::initWithMarkdown:options:baseURL:error: not bound -!missing-selector! NSAttributedString::initWithMarkdownString:options:baseURL:error: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::allowsExtendedAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::failurePolicy not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::init not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::interpretedSyntax not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::languageCode not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAllowsExtendedAttributes: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setFailurePolicy: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setInterpretedSyntax: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setLanguageCode: not bound -!missing-selector! NSBundle::localizedAttributedStringForKey:value:table: not bound -!missing-selector! NSByteCountFormatter::stringFromMeasurement: not bound -!missing-selector! NSInflectionRuleExplicit::initWithMorphology: not bound -!missing-selector! NSInflectionRuleExplicit::morphology not bound -!missing-selector! NSMorphology::customPronounForLanguage: not bound -!missing-selector! NSMorphology::grammaticalGender not bound -!missing-selector! NSMorphology::isUnspecified not bound -!missing-selector! NSMorphology::number not bound -!missing-selector! NSMorphology::partOfSpeech not bound -!missing-selector! NSMorphology::setCustomPronoun:forLanguage:error: not bound -!missing-selector! NSMorphology::setGrammaticalGender: not bound -!missing-selector! NSMorphology::setNumber: not bound -!missing-selector! NSMorphology::setPartOfSpeech: not bound -!missing-selector! NSMorphologyCustomPronoun::objectForm not bound -!missing-selector! NSMorphologyCustomPronoun::possessiveAdjectiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::possessiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::reflexiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::setObjectForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setPossessiveAdjectiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setPossessiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setReflexiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setSubjectForm: not bound -!missing-selector! NSMorphologyCustomPronoun::subjectForm not bound -!missing-selector! NSMutableArray::applyDifference: not bound !missing-selector! NSMutableAttributedString::appendLocalizedFormat: not bound -!missing-selector! NSMutableOrderedSet::applyDifference: not bound -!missing-selector! NSMutableURLRequest::attribution not bound -!missing-selector! NSMutableURLRequest::setAttribution: not bound -!missing-selector! NSOrderedCollectionChange::associatedIndex not bound -!missing-selector! NSOrderedCollectionChange::changeType not bound -!missing-selector! NSOrderedCollectionChange::index not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound -!missing-selector! NSOrderedCollectionChange::object not bound -!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound -!missing-selector! NSOrderedCollectionDifference::hasChanges not bound -!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound -!missing-selector! NSOrderedCollectionDifference::insertions not bound -!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound -!missing-selector! NSOrderedCollectionDifference::removals not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound -!missing-selector! NSPersonNameComponentsFormatter::locale not bound -!missing-selector! NSPersonNameComponentsFormatter::setLocale: not bound -!missing-selector! NSPresentationIntent::column not bound -!missing-selector! NSPresentationIntent::columnAlignments not bound -!missing-selector! NSPresentationIntent::columnCount not bound -!missing-selector! NSPresentationIntent::headerLevel not bound -!missing-selector! NSPresentationIntent::identity not bound -!missing-selector! NSPresentationIntent::indentationLevel not bound -!missing-selector! NSPresentationIntent::intentKind not bound -!missing-selector! NSPresentationIntent::isEquivalentToPresentationIntent: not bound -!missing-selector! NSPresentationIntent::languageHint not bound -!missing-selector! NSPresentationIntent::ordinal not bound -!missing-selector! NSPresentationIntent::parentIntent not bound -!missing-selector! NSPresentationIntent::row not bound -!missing-selector! NSProcessInfo::isLowPowerModeEnabled not bound -!missing-selector! NSURLRequest::attribution not bound -!missing-selector! NSURLSessionTask::delegate not bound -!missing-selector! NSURLSessionTask::setDelegate: not bound -!missing-selector! NSUUID::compare: not bound -!missing-type! NSAttributedStringMarkdownParsingOptions not bound -!missing-type! NSInflectionRule not bound -!missing-type! NSInflectionRuleExplicit not bound -!missing-type! NSMorphology not bound -!missing-type! NSMorphologyCustomPronoun not bound -!missing-type! NSOrderedCollectionChange not bound -!missing-type! NSOrderedCollectionDifference not bound -!missing-type! NSPresentationIntent not bound -!extra-enum-value! Managed value 1 for NSItemProviderRepresentationVisibility.Team is available for the current platform while the value in the native header is not !deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute !deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute !missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.ignore index d5368ef68deb..cb5662cbdf50 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.ignore @@ -11,17 +11,4 @@ !missing-protocol-conformance! NSXPCConnection should conform to NSXPCProxyCreating !missing-selector! NSXPCInterface::interfaceForSelector:argumentIndex:ofReply: not bound -!missing-selector! NSXPCInterface::setInterface:forSelector:argumentIndex:ofReply: not bound - -# Initial result from new rule missing-null-allowed -!missing-null-allowed! 'Foundation.NSData Foundation.NSUbiquitousKeyValueStore::GetData(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSDictionary Foundation.NSUbiquitousKeyValueStore::GetDictionary(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSExpression Foundation.NSExpression::FromFunction(Foundation.NSExpressionCallbackHandler,Foundation.NSExpression[])' is missing an [NullAllowed] on parameter #1 -!missing-null-allowed! 'Foundation.NSObject Foundation.NSUbiquitousKeyValueStore::ObjectForKey(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSObject[] Foundation.NSUbiquitousKeyValueStore::GetArray(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.String Foundation.NSUbiquitousKeyValueStore::GetString(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetArray(Foundation.NSObject[],System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetData(Foundation.NSData,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetDictionary(Foundation.NSDictionary,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetString(System.String,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::SetObjectForKey(Foundation.NSObject,System.String)' is missing an [NullAllowed] on parameter #0 +!missing-selector! NSXPCInterface::setInterface:forSelector:argumentIndex:ofReply: not bound \ No newline at end of file diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.todo index 45bb86116d30..59fa15257b3d 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.todo @@ -1,152 +1,10 @@ -!deprecated-attribute-missing! NSNetService missing a [Deprecated] attribute -!deprecated-attribute-missing! NSNetServiceBrowser missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLSession::streamTaskWithNetService: missing a [Deprecated] attribute -!missing-enum! NSAttributedStringFormattingOptions not bound -!missing-enum! NSAttributedStringMarkdownInterpretedSyntax not bound -!missing-enum! NSAttributedStringMarkdownParsingFailurePolicy not bound -!missing-enum! NSGrammaticalGender not bound -!missing-enum! NSGrammaticalNumber not bound -!missing-enum! NSGrammaticalPartOfSpeech not bound -!missing-enum! NSInlinePresentationIntent not bound -!missing-enum! NSPresentationIntentKind not bound -!missing-enum! NSPresentationIntentTableColumnAlignment not bound -!missing-enum! NSURLRequestAttribution not bound -!missing-enum-value! NSJsonReadingOptions native value NSJSONReadingJSON5Allowed = 8 not bound -!missing-enum-value! NSJsonReadingOptions native value NSJSONReadingTopLevelDictionaryAssumed = 16 not bound -!missing-enum-value! NSUrlBookmarkCreationOptions native value NSURLBookmarkCreationWithoutImplicitSecurityScope = 536870912 not bound -!missing-enum-value! NSUrlBookmarkResolutionOptions native value NSURLBookmarkResolutionWithoutImplicitStartAccessing = 32768 not bound -!missing-field! NSAlternateDescriptionAttributeName not bound -!missing-field! NSImageURLAttributeName not bound -!missing-field! NSInflectionAlternativeAttributeName not bound -!missing-field! NSInflectionRuleAttributeName not bound -!missing-field! NSInlinePresentationIntentAttributeName not bound -!missing-field! NSLanguageIdentifierAttributeName not bound -!missing-field! NSMorphologyAttributeName not bound -!missing-field! NSPresentationIntentAttributeName not bound -!missing-field! NSProgressFileOperationKindDuplicating not bound -!missing-field! NSReplacementIndexAttributeName not bound !missing-selector! +NSAttributedString::localizedAttributedStringWithFormat: not bound !missing-selector! +NSAttributedString::localizedAttributedStringWithFormat:options: not bound -!missing-selector! +NSByteCountFormatter::stringFromMeasurement:countStyle: not bound -!missing-selector! +NSInflectionRule::automaticRule not bound -!missing-selector! +NSInflectionRule::canInflectLanguage: not bound -!missing-selector! +NSInflectionRule::canInflectPreferredLocalization not bound -!missing-selector! +NSMorphology::userMorphology not bound -!missing-selector! +NSMorphologyCustomPronoun::isSupportedForLanguage: not bound -!missing-selector! +NSMorphologyCustomPronoun::requiredKeysForLanguage: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound -!missing-selector! +NSPresentationIntent::blockQuoteIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::codeBlockIntentWithIdentity:languageHint:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::headerIntentWithIdentity:level:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::listItemIntentWithIdentity:ordinal:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::orderedListIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::paragraphIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableCellIntentWithIdentity:column:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableHeaderRowIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableRowIntentWithIdentity:row:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::thematicBreakIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::unorderedListIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! NSArray::arrayByApplyingDifference: not bound -!missing-selector! NSArray::differenceFromArray: not bound -!missing-selector! NSArray::differenceFromArray:withOptions: not bound -!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSAttributedString::attributedStringByInflectingString not bound -!missing-selector! NSAttributedString::initWithContentsOfMarkdownFileAtURL:options:baseURL:error: not bound !missing-selector! NSAttributedString::initWithFormat:options:locale: not bound !missing-selector! NSAttributedString::initWithFormat:options:locale:arguments: not bound -!missing-selector! NSAttributedString::initWithMarkdown:options:baseURL:error: not bound -!missing-selector! NSAttributedString::initWithMarkdownString:options:baseURL:error: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::allowsExtendedAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::failurePolicy not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::init not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::interpretedSyntax not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::languageCode not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAllowsExtendedAttributes: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setFailurePolicy: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setInterpretedSyntax: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setLanguageCode: not bound -!missing-selector! NSBundle::localizedAttributedStringForKey:value:table: not bound -!missing-selector! NSByteCountFormatter::stringFromMeasurement: not bound -!missing-selector! NSInflectionRuleExplicit::initWithMorphology: not bound -!missing-selector! NSInflectionRuleExplicit::morphology not bound -!missing-selector! NSMorphology::customPronounForLanguage: not bound -!missing-selector! NSMorphology::grammaticalGender not bound -!missing-selector! NSMorphology::isUnspecified not bound -!missing-selector! NSMorphology::number not bound -!missing-selector! NSMorphology::partOfSpeech not bound -!missing-selector! NSMorphology::setCustomPronoun:forLanguage:error: not bound -!missing-selector! NSMorphology::setGrammaticalGender: not bound -!missing-selector! NSMorphology::setNumber: not bound -!missing-selector! NSMorphology::setPartOfSpeech: not bound -!missing-selector! NSMorphologyCustomPronoun::objectForm not bound -!missing-selector! NSMorphologyCustomPronoun::possessiveAdjectiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::possessiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::reflexiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::setObjectForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setPossessiveAdjectiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setPossessiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setReflexiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setSubjectForm: not bound -!missing-selector! NSMorphologyCustomPronoun::subjectForm not bound -!missing-selector! NSMutableArray::applyDifference: not bound !missing-selector! NSMutableAttributedString::appendLocalizedFormat: not bound -!missing-selector! NSMutableOrderedSet::applyDifference: not bound -!missing-selector! NSMutableURLRequest::attribution not bound -!missing-selector! NSMutableURLRequest::setAttribution: not bound -!missing-selector! NSOrderedCollectionChange::associatedIndex not bound -!missing-selector! NSOrderedCollectionChange::changeType not bound -!missing-selector! NSOrderedCollectionChange::index not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound -!missing-selector! NSOrderedCollectionChange::object not bound -!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound -!missing-selector! NSOrderedCollectionDifference::hasChanges not bound -!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound -!missing-selector! NSOrderedCollectionDifference::insertions not bound -!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound -!missing-selector! NSOrderedCollectionDifference::removals not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound -!missing-selector! NSPersonNameComponentsFormatter::locale not bound -!missing-selector! NSPersonNameComponentsFormatter::setLocale: not bound -!missing-selector! NSPresentationIntent::column not bound -!missing-selector! NSPresentationIntent::columnAlignments not bound -!missing-selector! NSPresentationIntent::columnCount not bound -!missing-selector! NSPresentationIntent::headerLevel not bound -!missing-selector! NSPresentationIntent::identity not bound -!missing-selector! NSPresentationIntent::indentationLevel not bound -!missing-selector! NSPresentationIntent::intentKind not bound -!missing-selector! NSPresentationIntent::isEquivalentToPresentationIntent: not bound -!missing-selector! NSPresentationIntent::languageHint not bound -!missing-selector! NSPresentationIntent::ordinal not bound -!missing-selector! NSPresentationIntent::parentIntent not bound -!missing-selector! NSPresentationIntent::row not bound -!missing-selector! NSURLRequest::attribution not bound -!missing-selector! NSURLSessionTask::delegate not bound -!missing-selector! NSURLSessionTask::setDelegate: not bound -!missing-selector! NSUUID::compare: not bound -!missing-type! NSAttributedStringMarkdownParsingOptions not bound -!missing-type! NSInflectionRule not bound -!missing-type! NSInflectionRuleExplicit not bound -!missing-type! NSMorphology not bound -!missing-type! NSMorphologyCustomPronoun not bound -!missing-type! NSOrderedCollectionChange not bound -!missing-type! NSOrderedCollectionDifference not bound -!missing-type! NSPresentationIntent not bound -!extra-enum-value! Managed value 102 for NSSearchPathDirectory.TrashDirectory is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 1024 for NSUrlBookmarkResolutionOptions.WithSecurityScope is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 2 for NSItemProviderRepresentationVisibility.Group is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 2048 for NSUrlBookmarkCreationOptions.WithSecurityScope is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 4096 for NSUrlBookmarkCreationOptions.SecurityScopeAllowOnlyReadAccess is available for the current platform while the value in the native header is not !deprecated-attribute-missing! NSDateComponents::setWeek: missing a [Deprecated] attribute !deprecated-attribute-missing! NSDateComponents::week missing a [Deprecated] attribute -!deprecated-attribute-missing! NSNetService::resolve missing a [Deprecated] attribute !deprecated-attribute-missing! NSProcessInfo::operatingSystem missing a [Deprecated] attribute !deprecated-attribute-missing! NSProcessInfo::operatingSystemName missing a [Deprecated] attribute !deprecated-attribute-missing! NSURLConnection::initWithRequest:delegate: missing a [Deprecated] attribute diff --git a/tests/xtro-sharpie/common-Foundation.ignore b/tests/xtro-sharpie/common-Foundation.ignore index d3dac7c961f0..3c43adbf44eb 100644 --- a/tests/xtro-sharpie/common-Foundation.ignore +++ b/tests/xtro-sharpie/common-Foundation.ignore @@ -4,6 +4,7 @@ !missing-protocol-conformance! NSDictionary should conform to NSFastEnumeration !missing-protocol-conformance! NSEnumerator should conform to NSFastEnumeration !missing-protocol-conformance! NSOrderedSet should conform to NSFastEnumeration +!missing-protocol-conformance! NSOrderedCollectionDifference should conform to NSFastEnumeration !missing-protocol-conformance! NSSet should conform to NSFastEnumeration ## untyped enums (only values, not type name) NSError.h @@ -1067,8 +1068,6 @@ !missing-null-allowed! 'Foundation.NSObject Foundation.NSObject::ValueForKey(Foundation.NSString)' is missing an [NullAllowed] on return type !missing-null-allowed! 'Foundation.NSObject Foundation.NSObject::ValueForKeyPath(Foundation.NSString)' is missing an [NullAllowed] on return type !missing-null-allowed! 'Foundation.NSObject Foundation.NSObject::ValueForUndefinedKey(Foundation.NSString)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSObject Foundation.NSOrderedSet::FirstObject()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSObject Foundation.NSOrderedSet::LastObject()' is missing an [NullAllowed] on return type !missing-null-allowed! 'Foundation.NSObject Foundation.NSPropertyListSerialization::PropertyListWithData(Foundation.NSData,Foundation.NSPropertyListReadOptions,Foundation.NSPropertyListFormat&,Foundation.NSError&)' is missing an [NullAllowed] on return type !missing-null-allowed! 'Foundation.NSObject Foundation.NSPropertyListSerialization::PropertyListWithStream(Foundation.NSInputStream,Foundation.NSPropertyListReadOptions,Foundation.NSPropertyListFormat&,Foundation.NSError&)' is missing an [NullAllowed] on return type !missing-null-allowed! 'Foundation.NSObject Foundation.NSSet::get_AnyObject()' is missing an [NullAllowed] on return type @@ -1381,3 +1380,15 @@ ## the apple docs state that it does accept null: https://developer.apple.com/documentation/foundation/nsurl/1572047-urlwithstring ## An NSURL object initialized with URLString. If the URL string was malformed or nil, returns nil. !extra-null-allowed! 'Foundation.NSUrl Foundation.NSUrl::FromString(System.String)' has a extraneous [NullAllowed] on parameter #0 + +# we do not support varags and we can do the same with string interpolation +!missing-selector! NSAttributedString::initWithFormat:options:locale: not bound +!missing-selector! NSAttributedString::initWithFormat:options:locale:arguments: not bound +!missing-selector! +NSAttributedString::localizedAttributedStringWithFormat: not bound +!missing-selector! +NSAttributedString::localizedAttributedStringWithFormat:options: not bound +!missing-selector! NSMutableAttributedString::appendLocalizedFormat: not bound + +# ignore because we did not add nullallowed but are using ref +!extra-null-allowed! 'System.IntPtr Foundation.NSArray::_GetDifferenceFromArray(Foundation.NSArray,Foundation.NSOrderedCollectionDifferenceCalculationOptions,ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #2 +!extra-null-allowed! 'System.IntPtr Foundation.NSOrderedCollectionDifference::_GetDifference(ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #0 +!extra-null-allowed! 'System.IntPtr Foundation.NSOrderedSet::_GetDifference(Foundation.NSOrderedSet,Foundation.NSOrderedCollectionDifferenceCalculationOptions,ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #2 diff --git a/tests/xtro-sharpie/iOS-Foundation.ignore b/tests/xtro-sharpie/iOS-Foundation.ignore index 3c4feaebadf0..dbc3e5102c68 100644 --- a/tests/xtro-sharpie/iOS-Foundation.ignore +++ b/tests/xtro-sharpie/iOS-Foundation.ignore @@ -5,17 +5,4 @@ !missing-selector! NSXPCInterface::setInterface:forSelector:argumentIndex:ofReply: not bound ## does not exists in iOS as a type - but some API refers to it (messy) -!unknown-type! NSPortMessage bound - -# Initial result from new rule missing-null-allowed -!missing-null-allowed! 'Foundation.NSData Foundation.NSUbiquitousKeyValueStore::GetData(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSDictionary Foundation.NSUbiquitousKeyValueStore::GetDictionary(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSExpression Foundation.NSExpression::FromFunction(Foundation.NSExpressionHandler,Foundation.NSExpression[])' is missing an [NullAllowed] on parameter #1 -!missing-null-allowed! 'Foundation.NSObject Foundation.NSUbiquitousKeyValueStore::ObjectForKey(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSObject[] Foundation.NSUbiquitousKeyValueStore::GetArray(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.String Foundation.NSUbiquitousKeyValueStore::GetString(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetArray(Foundation.NSObject[],System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetData(Foundation.NSData,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetDictionary(Foundation.NSDictionary,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetString(System.String,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::SetObjectForKey(Foundation.NSObject,System.String)' is missing an [NullAllowed] on parameter #0 +!unknown-type! NSPortMessage bound \ No newline at end of file diff --git a/tests/xtro-sharpie/iOS-Foundation.todo b/tests/xtro-sharpie/iOS-Foundation.todo index 1011cf8437f5..6c4359a78592 100644 --- a/tests/xtro-sharpie/iOS-Foundation.todo +++ b/tests/xtro-sharpie/iOS-Foundation.todo @@ -1,148 +1,3 @@ -!deprecated-attribute-missing! NSNetService missing a [Deprecated] attribute -!deprecated-attribute-missing! NSNetServiceBrowser missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLSession::streamTaskWithNetService: missing a [Deprecated] attribute -!missing-enum! NSAttributedStringFormattingOptions not bound -!missing-enum! NSAttributedStringMarkdownInterpretedSyntax not bound -!missing-enum! NSAttributedStringMarkdownParsingFailurePolicy not bound -!missing-enum! NSGrammaticalGender not bound -!missing-enum! NSGrammaticalNumber not bound -!missing-enum! NSGrammaticalPartOfSpeech not bound -!missing-enum! NSInlinePresentationIntent not bound -!missing-enum! NSPresentationIntentKind not bound -!missing-enum! NSPresentationIntentTableColumnAlignment not bound -!missing-enum! NSURLRequestAttribution not bound -!missing-enum-value! NSJsonReadingOptions native value NSJSONReadingJSON5Allowed = 8 not bound -!missing-enum-value! NSJsonReadingOptions native value NSJSONReadingTopLevelDictionaryAssumed = 16 not bound -!missing-enum-value! NSUrlBookmarkCreationOptions native value NSURLBookmarkCreationWithoutImplicitSecurityScope = 536870912 not bound -!missing-enum-value! NSUrlBookmarkResolutionOptions native value NSURLBookmarkResolutionWithoutImplicitStartAccessing = 32768 not bound -!missing-field! NSAlternateDescriptionAttributeName not bound -!missing-field! NSImageURLAttributeName not bound -!missing-field! NSInflectionAlternativeAttributeName not bound -!missing-field! NSInflectionRuleAttributeName not bound -!missing-field! NSInlinePresentationIntentAttributeName not bound -!missing-field! NSLanguageIdentifierAttributeName not bound -!missing-field! NSMorphologyAttributeName not bound -!missing-field! NSPresentationIntentAttributeName not bound -!missing-field! NSProgressFileOperationKindDuplicating not bound -!missing-field! NSReplacementIndexAttributeName not bound -!missing-selector! +NSAttributedString::localizedAttributedStringWithFormat: not bound -!missing-selector! +NSAttributedString::localizedAttributedStringWithFormat:options: not bound -!missing-selector! +NSByteCountFormatter::stringFromMeasurement:countStyle: not bound -!missing-selector! +NSInflectionRule::automaticRule not bound -!missing-selector! +NSInflectionRule::canInflectLanguage: not bound -!missing-selector! +NSInflectionRule::canInflectPreferredLocalization not bound -!missing-selector! +NSMorphology::userMorphology not bound -!missing-selector! +NSMorphologyCustomPronoun::isSupportedForLanguage: not bound -!missing-selector! +NSMorphologyCustomPronoun::requiredKeysForLanguage: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound -!missing-selector! +NSPresentationIntent::blockQuoteIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::codeBlockIntentWithIdentity:languageHint:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::headerIntentWithIdentity:level:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::listItemIntentWithIdentity:ordinal:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::orderedListIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::paragraphIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableCellIntentWithIdentity:column:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableHeaderRowIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableRowIntentWithIdentity:row:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::thematicBreakIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::unorderedListIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! NSArray::arrayByApplyingDifference: not bound -!missing-selector! NSArray::differenceFromArray: not bound -!missing-selector! NSArray::differenceFromArray:withOptions: not bound -!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSAttributedString::attributedStringByInflectingString not bound -!missing-selector! NSAttributedString::initWithContentsOfMarkdownFileAtURL:options:baseURL:error: not bound -!missing-selector! NSAttributedString::initWithFormat:options:locale: not bound -!missing-selector! NSAttributedString::initWithFormat:options:locale:arguments: not bound -!missing-selector! NSAttributedString::initWithMarkdown:options:baseURL:error: not bound -!missing-selector! NSAttributedString::initWithMarkdownString:options:baseURL:error: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::allowsExtendedAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::failurePolicy not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::init not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::interpretedSyntax not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::languageCode not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAllowsExtendedAttributes: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setFailurePolicy: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setInterpretedSyntax: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setLanguageCode: not bound -!missing-selector! NSBundle::localizedAttributedStringForKey:value:table: not bound -!missing-selector! NSByteCountFormatter::stringFromMeasurement: not bound -!missing-selector! NSInflectionRuleExplicit::initWithMorphology: not bound -!missing-selector! NSInflectionRuleExplicit::morphology not bound -!missing-selector! NSMorphology::customPronounForLanguage: not bound -!missing-selector! NSMorphology::grammaticalGender not bound -!missing-selector! NSMorphology::isUnspecified not bound -!missing-selector! NSMorphology::number not bound -!missing-selector! NSMorphology::partOfSpeech not bound -!missing-selector! NSMorphology::setCustomPronoun:forLanguage:error: not bound -!missing-selector! NSMorphology::setGrammaticalGender: not bound -!missing-selector! NSMorphology::setNumber: not bound -!missing-selector! NSMorphology::setPartOfSpeech: not bound -!missing-selector! NSMorphologyCustomPronoun::objectForm not bound -!missing-selector! NSMorphologyCustomPronoun::possessiveAdjectiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::possessiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::reflexiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::setObjectForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setPossessiveAdjectiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setPossessiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setReflexiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setSubjectForm: not bound -!missing-selector! NSMorphologyCustomPronoun::subjectForm not bound -!missing-selector! NSMutableArray::applyDifference: not bound -!missing-selector! NSMutableAttributedString::appendLocalizedFormat: not bound -!missing-selector! NSMutableOrderedSet::applyDifference: not bound -!missing-selector! NSMutableURLRequest::attribution not bound -!missing-selector! NSMutableURLRequest::setAttribution: not bound -!missing-selector! NSOrderedCollectionChange::associatedIndex not bound -!missing-selector! NSOrderedCollectionChange::changeType not bound -!missing-selector! NSOrderedCollectionChange::index not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound -!missing-selector! NSOrderedCollectionChange::object not bound -!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound -!missing-selector! NSOrderedCollectionDifference::hasChanges not bound -!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound -!missing-selector! NSOrderedCollectionDifference::insertions not bound -!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound -!missing-selector! NSOrderedCollectionDifference::removals not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound -!missing-selector! NSPersonNameComponentsFormatter::locale not bound -!missing-selector! NSPersonNameComponentsFormatter::setLocale: not bound -!missing-selector! NSPresentationIntent::column not bound -!missing-selector! NSPresentationIntent::columnAlignments not bound -!missing-selector! NSPresentationIntent::columnCount not bound -!missing-selector! NSPresentationIntent::headerLevel not bound -!missing-selector! NSPresentationIntent::identity not bound -!missing-selector! NSPresentationIntent::indentationLevel not bound -!missing-selector! NSPresentationIntent::intentKind not bound -!missing-selector! NSPresentationIntent::isEquivalentToPresentationIntent: not bound -!missing-selector! NSPresentationIntent::languageHint not bound -!missing-selector! NSPresentationIntent::ordinal not bound -!missing-selector! NSPresentationIntent::parentIntent not bound -!missing-selector! NSPresentationIntent::row not bound -!missing-selector! NSURLRequest::attribution not bound -!missing-selector! NSURLSessionTask::delegate not bound -!missing-selector! NSURLSessionTask::setDelegate: not bound -!missing-selector! NSUUID::compare: not bound -!missing-type! NSAttributedStringMarkdownParsingOptions not bound -!missing-type! NSInflectionRule not bound -!missing-type! NSInflectionRuleExplicit not bound -!missing-type! NSMorphology not bound -!missing-type! NSMorphologyCustomPronoun not bound -!missing-type! NSOrderedCollectionChange not bound -!missing-type! NSOrderedCollectionDifference not bound -!missing-type! NSPresentationIntent not bound -!extra-enum-value! Managed value 1024 for NSUrlBookmarkResolutionOptions.WithSecurityScope is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 2 for NSItemProviderRepresentationVisibility.Group is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 2048 for NSUrlBookmarkCreationOptions.WithSecurityScope is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 4096 for NSUrlBookmarkCreationOptions.SecurityScopeAllowOnlyReadAccess is available for the current platform while the value in the native header is not !deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute !deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute !missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound diff --git a/tests/xtro-sharpie/macOS-Foundation.ignore b/tests/xtro-sharpie/macOS-Foundation.ignore index 012b26bd8f0d..fe426af8636f 100644 --- a/tests/xtro-sharpie/macOS-Foundation.ignore +++ b/tests/xtro-sharpie/macOS-Foundation.ignore @@ -586,31 +586,3 @@ !missing-selector! NSXMLDTDNode::init not bound !missing-selector! NSXMLNode::detach not bound !missing-selector! NSXMLNode::init not bound - -# Initial result from new rule missing-null-allowed -!missing-null-allowed! 'Foundation.NSAppleEventDescriptor Foundation.NSScriptCommand::get_AppleEvent()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSArray Foundation.NSPortMessage::get_Components()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSData Foundation.NSUbiquitousKeyValueStore::GetData(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSData Foundation.NSUrlDownload::get_ResumeData()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSDictionary Foundation.NSUbiquitousKeyValueStore::GetDictionary(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSExpression Foundation.NSExpression::FromFunction(Foundation.NSExpressionHandler,Foundation.NSExpression[])' is missing an [NullAllowed] on parameter #1 -!missing-null-allowed! 'Foundation.NSFileVersion Foundation.NSFileVersion::AddVersion(Foundation.NSUrl,Foundation.NSUrl,Foundation.NSFileVersionAddingOptions,Foundation.NSError&)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSObject Foundation.NSScriptCommand::get_EvaluatedReceivers()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSObject Foundation.NSUbiquitousKeyValueStore::ObjectForKey(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSObject[] Foundation.NSUbiquitousKeyValueStore::GetArray(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSPort Foundation.NSPortMessage::get_ReceivePort()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSPort Foundation.NSPortMessage::get_SendPort()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSPredicate Foundation.NSPredicate::FromMetadataQueryString(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSString Foundation.NSScriptCommandDescription::GetNSTypeForArgument(Foundation.NSString)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSUrl Foundation.NSFilePresenter::get_PrimaryPresentedItemUrl()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.String Foundation.NSScriptCommandDescription::get_ReturnType()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.String Foundation.NSUbiquitousKeyValueStore::GetString(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.Void Foundation.NSPortMessage::.ctor(Foundation.NSPort,Foundation.NSPort,Foundation.NSArray)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSPortMessage::.ctor(Foundation.NSPort,Foundation.NSPort,Foundation.NSArray)' is missing an [NullAllowed] on parameter #1 -!missing-null-allowed! 'System.Void Foundation.NSPortMessage::.ctor(Foundation.NSPort,Foundation.NSPort,Foundation.NSArray)' is missing an [NullAllowed] on parameter #2 -!missing-null-allowed! 'System.Void Foundation.NSScriptCommandDescription::.ctor(Foundation.NSString,Foundation.NSString,Foundation.NSDictionary)' is missing an [NullAllowed] on parameter #2 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetArray(Foundation.NSObject[],System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetData(Foundation.NSData,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetDictionary(Foundation.NSDictionary,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetString(System.String,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::SetObjectForKey(Foundation.NSObject,System.String)' is missing an [NullAllowed] on parameter #0 diff --git a/tests/xtro-sharpie/macOS-Foundation.todo b/tests/xtro-sharpie/macOS-Foundation.todo index bedfef1ee7bd..d9f4fa623577 100644 --- a/tests/xtro-sharpie/macOS-Foundation.todo +++ b/tests/xtro-sharpie/macOS-Foundation.todo @@ -1,148 +1,3 @@ -!deprecated-attribute-missing! NSHost missing a [Deprecated] attribute -!deprecated-attribute-missing! NSNetService missing a [Deprecated] attribute -!deprecated-attribute-missing! NSNetServiceBrowser missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLSession::streamTaskWithNetService: missing a [Deprecated] attribute -!missing-enum! NSAttributedStringFormattingOptions not bound -!missing-enum! NSAttributedStringMarkdownInterpretedSyntax not bound -!missing-enum! NSAttributedStringMarkdownParsingFailurePolicy not bound -!missing-enum! NSGrammaticalGender not bound -!missing-enum! NSGrammaticalNumber not bound -!missing-enum! NSGrammaticalPartOfSpeech not bound -!missing-enum! NSInlinePresentationIntent not bound -!missing-enum! NSPresentationIntentKind not bound -!missing-enum! NSPresentationIntentTableColumnAlignment not bound -!missing-enum! NSURLRequestAttribution not bound -!missing-enum-value! NSJsonReadingOptions native value NSJSONReadingJSON5Allowed = 8 not bound -!missing-enum-value! NSJsonReadingOptions native value NSJSONReadingTopLevelDictionaryAssumed = 16 not bound -!missing-enum-value! NSUrlBookmarkCreationOptions native value NSURLBookmarkCreationWithoutImplicitSecurityScope = 536870912 not bound -!missing-enum-value! NSUrlBookmarkResolutionOptions native value NSURLBookmarkResolutionWithoutImplicitStartAccessing = 32768 not bound -!missing-field! NSAlternateDescriptionAttributeName not bound -!missing-field! NSImageURLAttributeName not bound -!missing-field! NSInflectionAlternativeAttributeName not bound -!missing-field! NSInflectionRuleAttributeName not bound -!missing-field! NSInlinePresentationIntentAttributeName not bound -!missing-field! NSLanguageIdentifierAttributeName not bound -!missing-field! NSMorphologyAttributeName not bound -!missing-field! NSPresentationIntentAttributeName not bound -!missing-field! NSProcessInfoPowerStateDidChangeNotification not bound -!missing-field! NSProgressFileOperationKindDuplicating not bound -!missing-field! NSReplacementIndexAttributeName not bound -!missing-selector! +NSAttributedString::localizedAttributedStringWithFormat: not bound -!missing-selector! +NSAttributedString::localizedAttributedStringWithFormat:options: not bound -!missing-selector! +NSByteCountFormatter::stringFromMeasurement:countStyle: not bound -!missing-selector! +NSInflectionRule::automaticRule not bound -!missing-selector! +NSInflectionRule::canInflectLanguage: not bound -!missing-selector! +NSInflectionRule::canInflectPreferredLocalization not bound -!missing-selector! +NSMorphology::userMorphology not bound -!missing-selector! +NSMorphologyCustomPronoun::isSupportedForLanguage: not bound -!missing-selector! +NSMorphologyCustomPronoun::requiredKeysForLanguage: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound -!missing-selector! +NSPresentationIntent::blockQuoteIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::codeBlockIntentWithIdentity:languageHint:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::headerIntentWithIdentity:level:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::listItemIntentWithIdentity:ordinal:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::orderedListIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::paragraphIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableCellIntentWithIdentity:column:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableHeaderRowIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableRowIntentWithIdentity:row:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::thematicBreakIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::unorderedListIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! NSArray::arrayByApplyingDifference: not bound -!missing-selector! NSArray::differenceFromArray: not bound -!missing-selector! NSArray::differenceFromArray:withOptions: not bound -!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSAttributedString::attributedStringByInflectingString not bound -!missing-selector! NSAttributedString::initWithContentsOfMarkdownFileAtURL:options:baseURL:error: not bound -!missing-selector! NSAttributedString::initWithFormat:options:locale: not bound -!missing-selector! NSAttributedString::initWithFormat:options:locale:arguments: not bound -!missing-selector! NSAttributedString::initWithMarkdown:options:baseURL:error: not bound -!missing-selector! NSAttributedString::initWithMarkdownString:options:baseURL:error: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::allowsExtendedAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::failurePolicy not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::init not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::interpretedSyntax not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::languageCode not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAllowsExtendedAttributes: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setFailurePolicy: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setInterpretedSyntax: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setLanguageCode: not bound -!missing-selector! NSBundle::localizedAttributedStringForKey:value:table: not bound -!missing-selector! NSByteCountFormatter::stringFromMeasurement: not bound -!missing-selector! NSInflectionRuleExplicit::initWithMorphology: not bound -!missing-selector! NSInflectionRuleExplicit::morphology not bound -!missing-selector! NSMorphology::customPronounForLanguage: not bound -!missing-selector! NSMorphology::grammaticalGender not bound -!missing-selector! NSMorphology::isUnspecified not bound -!missing-selector! NSMorphology::number not bound -!missing-selector! NSMorphology::partOfSpeech not bound -!missing-selector! NSMorphology::setCustomPronoun:forLanguage:error: not bound -!missing-selector! NSMorphology::setGrammaticalGender: not bound -!missing-selector! NSMorphology::setNumber: not bound -!missing-selector! NSMorphology::setPartOfSpeech: not bound -!missing-selector! NSMorphologyCustomPronoun::objectForm not bound -!missing-selector! NSMorphologyCustomPronoun::possessiveAdjectiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::possessiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::reflexiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::setObjectForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setPossessiveAdjectiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setPossessiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setReflexiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setSubjectForm: not bound -!missing-selector! NSMorphologyCustomPronoun::subjectForm not bound -!missing-selector! NSMutableArray::applyDifference: not bound -!missing-selector! NSMutableAttributedString::appendLocalizedFormat: not bound -!missing-selector! NSMutableOrderedSet::applyDifference: not bound -!missing-selector! NSMutableURLRequest::attribution not bound -!missing-selector! NSMutableURLRequest::setAttribution: not bound -!missing-selector! NSOrderedCollectionChange::associatedIndex not bound -!missing-selector! NSOrderedCollectionChange::changeType not bound -!missing-selector! NSOrderedCollectionChange::index not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound -!missing-selector! NSOrderedCollectionChange::object not bound -!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound -!missing-selector! NSOrderedCollectionDifference::hasChanges not bound -!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound -!missing-selector! NSOrderedCollectionDifference::insertions not bound -!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound -!missing-selector! NSOrderedCollectionDifference::removals not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound -!missing-selector! NSPersonNameComponentsFormatter::locale not bound -!missing-selector! NSPersonNameComponentsFormatter::setLocale: not bound -!missing-selector! NSPresentationIntent::column not bound -!missing-selector! NSPresentationIntent::columnAlignments not bound -!missing-selector! NSPresentationIntent::columnCount not bound -!missing-selector! NSPresentationIntent::headerLevel not bound -!missing-selector! NSPresentationIntent::identity not bound -!missing-selector! NSPresentationIntent::indentationLevel not bound -!missing-selector! NSPresentationIntent::intentKind not bound -!missing-selector! NSPresentationIntent::isEquivalentToPresentationIntent: not bound -!missing-selector! NSPresentationIntent::languageHint not bound -!missing-selector! NSPresentationIntent::ordinal not bound -!missing-selector! NSPresentationIntent::parentIntent not bound -!missing-selector! NSPresentationIntent::row not bound -!missing-selector! NSProcessInfo::isLowPowerModeEnabled not bound -!missing-selector! NSURLRequest::attribution not bound -!missing-selector! NSURLSessionTask::delegate not bound -!missing-selector! NSURLSessionTask::setDelegate: not bound -!missing-selector! NSUUID::compare: not bound -!missing-type! NSAttributedStringMarkdownParsingOptions not bound -!missing-type! NSInflectionRule not bound -!missing-type! NSInflectionRuleExplicit not bound -!missing-type! NSMorphology not bound -!missing-type! NSMorphologyCustomPronoun not bound -!missing-type! NSOrderedCollectionChange not bound -!missing-type! NSOrderedCollectionDifference not bound -!missing-type! NSPresentationIntent not bound -!extra-enum-value! Managed value 1 for NSItemProviderRepresentationVisibility.Team is available for the current platform while the value in the native header is not !deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute !deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute !missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound diff --git a/tests/xtro-sharpie/tvOS-Foundation.ignore b/tests/xtro-sharpie/tvOS-Foundation.ignore index 8b01679f47e7..2e7ff513f4fd 100644 --- a/tests/xtro-sharpie/tvOS-Foundation.ignore +++ b/tests/xtro-sharpie/tvOS-Foundation.ignore @@ -12,16 +12,3 @@ !missing-protocol-conformance! NSXPCConnection should conform to NSXPCProxyCreating !missing-selector! NSXPCInterface::interfaceForSelector:argumentIndex:ofReply: not bound !missing-selector! NSXPCInterface::setInterface:forSelector:argumentIndex:ofReply: not bound - -# Initial result from new rule missing-null-allowed -!missing-null-allowed! 'Foundation.NSData Foundation.NSUbiquitousKeyValueStore::GetData(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSDictionary Foundation.NSUbiquitousKeyValueStore::GetDictionary(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSExpression Foundation.NSExpression::FromFunction(Foundation.NSExpressionHandler,Foundation.NSExpression[])' is missing an [NullAllowed] on parameter #1 -!missing-null-allowed! 'Foundation.NSObject Foundation.NSUbiquitousKeyValueStore::ObjectForKey(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSObject[] Foundation.NSUbiquitousKeyValueStore::GetArray(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.String Foundation.NSUbiquitousKeyValueStore::GetString(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetArray(Foundation.NSObject[],System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetData(Foundation.NSData,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetDictionary(Foundation.NSDictionary,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetString(System.String,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::SetObjectForKey(Foundation.NSObject,System.String)' is missing an [NullAllowed] on parameter #0 diff --git a/tests/xtro-sharpie/tvOS-Foundation.todo b/tests/xtro-sharpie/tvOS-Foundation.todo index fd8519517847..6c4359a78592 100644 --- a/tests/xtro-sharpie/tvOS-Foundation.todo +++ b/tests/xtro-sharpie/tvOS-Foundation.todo @@ -1,149 +1,3 @@ -!deprecated-attribute-missing! NSNetService missing a [Deprecated] attribute -!deprecated-attribute-missing! NSNetServiceBrowser missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLSession::streamTaskWithNetService: missing a [Deprecated] attribute -!missing-enum! NSAttributedStringFormattingOptions not bound -!missing-enum! NSAttributedStringMarkdownInterpretedSyntax not bound -!missing-enum! NSAttributedStringMarkdownParsingFailurePolicy not bound -!missing-enum! NSGrammaticalGender not bound -!missing-enum! NSGrammaticalNumber not bound -!missing-enum! NSGrammaticalPartOfSpeech not bound -!missing-enum! NSInlinePresentationIntent not bound -!missing-enum! NSPresentationIntentKind not bound -!missing-enum! NSPresentationIntentTableColumnAlignment not bound -!missing-enum! NSURLRequestAttribution not bound -!missing-enum-value! NSJsonReadingOptions native value NSJSONReadingJSON5Allowed = 8 not bound -!missing-enum-value! NSJsonReadingOptions native value NSJSONReadingTopLevelDictionaryAssumed = 16 not bound -!missing-enum-value! NSUrlBookmarkCreationOptions native value NSURLBookmarkCreationWithoutImplicitSecurityScope = 536870912 not bound -!missing-enum-value! NSUrlBookmarkResolutionOptions native value NSURLBookmarkResolutionWithoutImplicitStartAccessing = 32768 not bound -!missing-field! NSAlternateDescriptionAttributeName not bound -!missing-field! NSImageURLAttributeName not bound -!missing-field! NSInflectionAlternativeAttributeName not bound -!missing-field! NSInflectionRuleAttributeName not bound -!missing-field! NSInlinePresentationIntentAttributeName not bound -!missing-field! NSLanguageIdentifierAttributeName not bound -!missing-field! NSMorphologyAttributeName not bound -!missing-field! NSPresentationIntentAttributeName not bound -!missing-field! NSProgressFileOperationKindDuplicating not bound -!missing-field! NSReplacementIndexAttributeName not bound -!missing-selector! +NSAttributedString::localizedAttributedStringWithFormat: not bound -!missing-selector! +NSAttributedString::localizedAttributedStringWithFormat:options: not bound -!missing-selector! +NSByteCountFormatter::stringFromMeasurement:countStyle: not bound -!missing-selector! +NSInflectionRule::automaticRule not bound -!missing-selector! +NSInflectionRule::canInflectLanguage: not bound -!missing-selector! +NSInflectionRule::canInflectPreferredLocalization not bound -!missing-selector! +NSMorphology::userMorphology not bound -!missing-selector! +NSMorphologyCustomPronoun::isSupportedForLanguage: not bound -!missing-selector! +NSMorphologyCustomPronoun::requiredKeysForLanguage: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound -!missing-selector! +NSPresentationIntent::blockQuoteIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::codeBlockIntentWithIdentity:languageHint:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::headerIntentWithIdentity:level:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::listItemIntentWithIdentity:ordinal:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::orderedListIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::paragraphIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableCellIntentWithIdentity:column:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableHeaderRowIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableRowIntentWithIdentity:row:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::thematicBreakIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::unorderedListIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! NSArray::arrayByApplyingDifference: not bound -!missing-selector! NSArray::differenceFromArray: not bound -!missing-selector! NSArray::differenceFromArray:withOptions: not bound -!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSAttributedString::attributedStringByInflectingString not bound -!missing-selector! NSAttributedString::initWithContentsOfMarkdownFileAtURL:options:baseURL:error: not bound -!missing-selector! NSAttributedString::initWithFormat:options:locale: not bound -!missing-selector! NSAttributedString::initWithFormat:options:locale:arguments: not bound -!missing-selector! NSAttributedString::initWithMarkdown:options:baseURL:error: not bound -!missing-selector! NSAttributedString::initWithMarkdownString:options:baseURL:error: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::allowsExtendedAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::failurePolicy not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::init not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::interpretedSyntax not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::languageCode not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAllowsExtendedAttributes: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setFailurePolicy: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setInterpretedSyntax: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setLanguageCode: not bound -!missing-selector! NSBundle::localizedAttributedStringForKey:value:table: not bound -!missing-selector! NSByteCountFormatter::stringFromMeasurement: not bound -!missing-selector! NSInflectionRuleExplicit::initWithMorphology: not bound -!missing-selector! NSInflectionRuleExplicit::morphology not bound -!missing-selector! NSMorphology::customPronounForLanguage: not bound -!missing-selector! NSMorphology::grammaticalGender not bound -!missing-selector! NSMorphology::isUnspecified not bound -!missing-selector! NSMorphology::number not bound -!missing-selector! NSMorphology::partOfSpeech not bound -!missing-selector! NSMorphology::setCustomPronoun:forLanguage:error: not bound -!missing-selector! NSMorphology::setGrammaticalGender: not bound -!missing-selector! NSMorphology::setNumber: not bound -!missing-selector! NSMorphology::setPartOfSpeech: not bound -!missing-selector! NSMorphologyCustomPronoun::objectForm not bound -!missing-selector! NSMorphologyCustomPronoun::possessiveAdjectiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::possessiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::reflexiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::setObjectForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setPossessiveAdjectiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setPossessiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setReflexiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setSubjectForm: not bound -!missing-selector! NSMorphologyCustomPronoun::subjectForm not bound -!missing-selector! NSMutableArray::applyDifference: not bound -!missing-selector! NSMutableAttributedString::appendLocalizedFormat: not bound -!missing-selector! NSMutableOrderedSet::applyDifference: not bound -!missing-selector! NSMutableURLRequest::attribution not bound -!missing-selector! NSMutableURLRequest::setAttribution: not bound -!missing-selector! NSOrderedCollectionChange::associatedIndex not bound -!missing-selector! NSOrderedCollectionChange::changeType not bound -!missing-selector! NSOrderedCollectionChange::index not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound -!missing-selector! NSOrderedCollectionChange::object not bound -!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound -!missing-selector! NSOrderedCollectionDifference::hasChanges not bound -!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound -!missing-selector! NSOrderedCollectionDifference::insertions not bound -!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound -!missing-selector! NSOrderedCollectionDifference::removals not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound -!missing-selector! NSPersonNameComponentsFormatter::locale not bound -!missing-selector! NSPersonNameComponentsFormatter::setLocale: not bound -!missing-selector! NSPresentationIntent::column not bound -!missing-selector! NSPresentationIntent::columnAlignments not bound -!missing-selector! NSPresentationIntent::columnCount not bound -!missing-selector! NSPresentationIntent::headerLevel not bound -!missing-selector! NSPresentationIntent::identity not bound -!missing-selector! NSPresentationIntent::indentationLevel not bound -!missing-selector! NSPresentationIntent::intentKind not bound -!missing-selector! NSPresentationIntent::isEquivalentToPresentationIntent: not bound -!missing-selector! NSPresentationIntent::languageHint not bound -!missing-selector! NSPresentationIntent::ordinal not bound -!missing-selector! NSPresentationIntent::parentIntent not bound -!missing-selector! NSPresentationIntent::row not bound -!missing-selector! NSURLRequest::attribution not bound -!missing-selector! NSURLSessionTask::delegate not bound -!missing-selector! NSURLSessionTask::setDelegate: not bound -!missing-selector! NSUUID::compare: not bound -!missing-type! NSAttributedStringMarkdownParsingOptions not bound -!missing-type! NSInflectionRule not bound -!missing-type! NSInflectionRuleExplicit not bound -!missing-type! NSMorphology not bound -!missing-type! NSMorphologyCustomPronoun not bound -!missing-type! NSOrderedCollectionChange not bound -!missing-type! NSOrderedCollectionDifference not bound -!missing-type! NSPresentationIntent not bound -!extra-enum-value! Managed value 102 for NSSearchPathDirectory.TrashDirectory is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 1024 for NSUrlBookmarkResolutionOptions.WithSecurityScope is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 2 for NSItemProviderRepresentationVisibility.Group is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 2048 for NSUrlBookmarkCreationOptions.WithSecurityScope is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 4096 for NSUrlBookmarkCreationOptions.SecurityScopeAllowOnlyReadAccess is available for the current platform while the value in the native header is not !deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute !deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute !missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound diff --git a/tests/xtro-sharpie/watchOS-Foundation.todo b/tests/xtro-sharpie/watchOS-Foundation.todo index d9fc99e4b88a..7ff0d2c8f4e5 100644 --- a/tests/xtro-sharpie/watchOS-Foundation.todo +++ b/tests/xtro-sharpie/watchOS-Foundation.todo @@ -1,148 +1,3 @@ -!missing-enum! NSAttributedStringFormattingOptions not bound -!missing-enum! NSAttributedStringMarkdownInterpretedSyntax not bound -!missing-enum! NSAttributedStringMarkdownParsingFailurePolicy not bound -!missing-enum! NSGrammaticalGender not bound -!missing-enum! NSGrammaticalNumber not bound -!missing-enum! NSGrammaticalPartOfSpeech not bound -!missing-enum! NSInlinePresentationIntent not bound -!missing-enum! NSPresentationIntentKind not bound -!missing-enum! NSPresentationIntentTableColumnAlignment not bound -!missing-enum! NSURLRequestAttribution not bound -!missing-enum-value! NSJsonReadingOptions native value NSJSONReadingJSON5Allowed = 8 not bound -!missing-enum-value! NSJsonReadingOptions native value NSJSONReadingTopLevelDictionaryAssumed = 16 not bound -!missing-enum-value! NSUrlBookmarkCreationOptions native value NSURLBookmarkCreationWithoutImplicitSecurityScope = 536870912 not bound -!missing-enum-value! NSUrlBookmarkResolutionOptions native value NSURLBookmarkResolutionWithoutImplicitStartAccessing = 32768 not bound -!missing-field! NSAlternateDescriptionAttributeName not bound -!missing-field! NSImageURLAttributeName not bound -!missing-field! NSInflectionAlternativeAttributeName not bound -!missing-field! NSInflectionRuleAttributeName not bound -!missing-field! NSInlinePresentationIntentAttributeName not bound -!missing-field! NSLanguageIdentifierAttributeName not bound -!missing-field! NSMorphologyAttributeName not bound -!missing-field! NSPresentationIntentAttributeName not bound -!missing-field! NSProgressFileOperationKindDuplicating not bound -!missing-field! NSReplacementIndexAttributeName not bound -!missing-selector! +NSAttributedString::localizedAttributedStringWithFormat: not bound -!missing-selector! +NSAttributedString::localizedAttributedStringWithFormat:options: not bound -!missing-selector! +NSByteCountFormatter::stringFromMeasurement:countStyle: not bound -!missing-selector! +NSInflectionRule::automaticRule not bound -!missing-selector! +NSInflectionRule::canInflectLanguage: not bound -!missing-selector! +NSInflectionRule::canInflectPreferredLocalization not bound -!missing-selector! +NSMorphology::userMorphology not bound -!missing-selector! +NSMorphologyCustomPronoun::isSupportedForLanguage: not bound -!missing-selector! +NSMorphologyCustomPronoun::requiredKeysForLanguage: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound -!missing-selector! +NSPresentationIntent::blockQuoteIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::codeBlockIntentWithIdentity:languageHint:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::headerIntentWithIdentity:level:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::listItemIntentWithIdentity:ordinal:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::orderedListIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::paragraphIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableCellIntentWithIdentity:column:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableHeaderRowIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::tableRowIntentWithIdentity:row:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::thematicBreakIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! +NSPresentationIntent::unorderedListIntentWithIdentity:nestedInsideIntent: not bound -!missing-selector! NSArray::arrayByApplyingDifference: not bound -!missing-selector! NSArray::differenceFromArray: not bound -!missing-selector! NSArray::differenceFromArray:withOptions: not bound -!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSAttributedString::attributedStringByInflectingString not bound -!missing-selector! NSAttributedString::initWithContentsOfMarkdownFileAtURL:options:baseURL:error: not bound -!missing-selector! NSAttributedString::initWithFormat:options:locale: not bound -!missing-selector! NSAttributedString::initWithFormat:options:locale:arguments: not bound -!missing-selector! NSAttributedString::initWithMarkdown:options:baseURL:error: not bound -!missing-selector! NSAttributedString::initWithMarkdownString:options:baseURL:error: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::allowsExtendedAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::failurePolicy not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::init not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::interpretedSyntax not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::languageCode not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAllowsExtendedAttributes: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setFailurePolicy: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setInterpretedSyntax: not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setLanguageCode: not bound -!missing-selector! NSBundle::localizedAttributedStringForKey:value:table: not bound -!missing-selector! NSByteCountFormatter::stringFromMeasurement: not bound -!missing-selector! NSInflectionRuleExplicit::initWithMorphology: not bound -!missing-selector! NSInflectionRuleExplicit::morphology not bound -!missing-selector! NSMorphology::customPronounForLanguage: not bound -!missing-selector! NSMorphology::grammaticalGender not bound -!missing-selector! NSMorphology::isUnspecified not bound -!missing-selector! NSMorphology::number not bound -!missing-selector! NSMorphology::partOfSpeech not bound -!missing-selector! NSMorphology::setCustomPronoun:forLanguage:error: not bound -!missing-selector! NSMorphology::setGrammaticalGender: not bound -!missing-selector! NSMorphology::setNumber: not bound -!missing-selector! NSMorphology::setPartOfSpeech: not bound -!missing-selector! NSMorphologyCustomPronoun::objectForm not bound -!missing-selector! NSMorphologyCustomPronoun::possessiveAdjectiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::possessiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::reflexiveForm not bound -!missing-selector! NSMorphologyCustomPronoun::setObjectForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setPossessiveAdjectiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setPossessiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setReflexiveForm: not bound -!missing-selector! NSMorphologyCustomPronoun::setSubjectForm: not bound -!missing-selector! NSMorphologyCustomPronoun::subjectForm not bound -!missing-selector! NSMutableArray::applyDifference: not bound -!missing-selector! NSMutableAttributedString::appendLocalizedFormat: not bound -!missing-selector! NSMutableOrderedSet::applyDifference: not bound -!missing-selector! NSMutableURLRequest::attribution not bound -!missing-selector! NSMutableURLRequest::setAttribution: not bound -!missing-selector! NSOrderedCollectionChange::associatedIndex not bound -!missing-selector! NSOrderedCollectionChange::changeType not bound -!missing-selector! NSOrderedCollectionChange::index not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound -!missing-selector! NSOrderedCollectionChange::object not bound -!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound -!missing-selector! NSOrderedCollectionDifference::hasChanges not bound -!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound -!missing-selector! NSOrderedCollectionDifference::insertions not bound -!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound -!missing-selector! NSOrderedCollectionDifference::removals not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound -!missing-selector! NSPersonNameComponentsFormatter::locale not bound -!missing-selector! NSPersonNameComponentsFormatter::setLocale: not bound -!missing-selector! NSPresentationIntent::column not bound -!missing-selector! NSPresentationIntent::columnAlignments not bound -!missing-selector! NSPresentationIntent::columnCount not bound -!missing-selector! NSPresentationIntent::headerLevel not bound -!missing-selector! NSPresentationIntent::identity not bound -!missing-selector! NSPresentationIntent::indentationLevel not bound -!missing-selector! NSPresentationIntent::intentKind not bound -!missing-selector! NSPresentationIntent::isEquivalentToPresentationIntent: not bound -!missing-selector! NSPresentationIntent::languageHint not bound -!missing-selector! NSPresentationIntent::ordinal not bound -!missing-selector! NSPresentationIntent::parentIntent not bound -!missing-selector! NSPresentationIntent::row not bound -!missing-selector! NSURLRequest::attribution not bound -!missing-selector! NSURLSessionTask::delegate not bound -!missing-selector! NSURLSessionTask::setDelegate: not bound -!missing-selector! NSUUID::compare: not bound -!missing-type! NSAttributedStringMarkdownParsingOptions not bound -!missing-type! NSInflectionRule not bound -!missing-type! NSInflectionRuleExplicit not bound -!missing-type! NSMorphology not bound -!missing-type! NSMorphologyCustomPronoun not bound -!missing-type! NSOrderedCollectionChange not bound -!missing-type! NSOrderedCollectionDifference not bound -!missing-type! NSPresentationIntent not bound -## appended from unclassified file -## appended from unclassified file -!extra-enum-value! Managed value 102 for NSSearchPathDirectory.TrashDirectory is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 1024 for NSUrlBookmarkResolutionOptions.WithSecurityScope is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 2 for NSItemProviderRepresentationVisibility.Group is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 2048 for NSUrlBookmarkCreationOptions.WithSecurityScope is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 4096 for NSUrlBookmarkCreationOptions.SecurityScopeAllowOnlyReadAccess is available for the current platform while the value in the native header is not !deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute !deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute !missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound From 50faf69a5e4a9cf1123dffafe7d9a6b1e53fad1f Mon Sep 17 00:00:00 2001 From: Chris Hamons Date: Tue, 26 Jul 2022 15:08:50 -0500 Subject: [PATCH 02/12] Revert NSOrderedCollectionDifference and associated API/tests due to #15577 --- src/Foundation/NSArray.cs | 5 +++++ src/Foundation/NSArray_1.cs | 7 +++++-- src/Foundation/NSMutableArray_1.cs | 2 ++ src/Foundation/NSMutableOrderedSet_1.cs | 2 ++ src/Foundation/NSOrderedCollectionDifference.cs | 3 ++- src/Foundation/NSOrderedCollectionDifference_1.cs | 3 ++- src/Foundation/NSOrderedSet.cs | 3 ++- src/Foundation/NSOrderedSet_1.cs | 5 ++++- src/foundation.cs | 14 ++++++++++++-- src/generator.cs | 2 +- tests/monotouch-test/Foundation/NSArray1Test.cs | 2 ++ .../NSOrderedCollectionDifference1Test.cs | 2 ++ .../NSOrderedCollectionDifferenceTest.cs | 2 ++ 13 files changed, 43 insertions(+), 9 deletions(-) diff --git a/src/Foundation/NSArray.cs b/src/Foundation/NSArray.cs index ca79c190ae95..476bf34300e3 100644 --- a/src/Foundation/NSArray.cs +++ b/src/Foundation/NSArray.cs @@ -38,7 +38,9 @@ namespace Foundation { +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 public delegate bool NSOrderedCollectionDifferenceEquivalenceTest (NSObject first, NSObject second); +#endif public partial class NSArray { @@ -433,6 +435,8 @@ public static NSArray From (NSObject[][] items) } } +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 + static readonly NSOrderedCollectionDifferenceEquivalenceTestProxy static_DiffEquality = DiffEqualityHandler; [MonoPInvokeCallback (typeof (NSOrderedCollectionDifferenceEquivalenceTestProxy))] @@ -465,5 +469,6 @@ public NSOrderedCollectionDifference GetDifferenceFromArray (NSArray other, NSOr block.CleanupBlock (); } } +#endif } } diff --git a/src/Foundation/NSArray_1.cs b/src/Foundation/NSArray_1.cs index 7f9ce349d828..37dde8914251 100644 --- a/src/Foundation/NSArray_1.cs +++ b/src/Foundation/NSArray_1.cs @@ -22,9 +22,10 @@ #endif namespace Foundation { +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 public delegate bool NSOrderedCollectionDifferenceEquivalenceTest (TValue? first, TValue? second); internal delegate bool NSOrderedCollectionDifferenceEquivalenceTestProxy (IntPtr blockLiteral, /* NSObject */ IntPtr first, /* NSObject */ IntPtr second); - +#endif #if NET [SupportedOSPlatform ("ios")] [SupportedOSPlatform ("maccatalyst")] @@ -95,6 +96,8 @@ public TKey this [nint idx] { } } +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 + #if !NET [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] #else @@ -150,6 +153,6 @@ static bool DiffEqualityHandlerGeneric (IntPtr block, IntPtr first, IntPtr secon block.CleanupBlock (); } } - +#endif } } diff --git a/src/Foundation/NSMutableArray_1.cs b/src/Foundation/NSMutableArray_1.cs index ce74424668ae..69221dd3807c 100644 --- a/src/Foundation/NSMutableArray_1.cs +++ b/src/Foundation/NSMutableArray_1.cs @@ -199,6 +199,7 @@ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator () } #endregion +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 #if !NET [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] #else @@ -206,5 +207,6 @@ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator () #endif public void ApplyDifference (NSOrderedCollectionDifference difference) => ApplyDifference ((NSOrderedCollectionDifference) difference); +#endif } } diff --git a/src/Foundation/NSMutableOrderedSet_1.cs b/src/Foundation/NSMutableOrderedSet_1.cs index 71cc91439f44..617995429ff3 100644 --- a/src/Foundation/NSMutableOrderedSet_1.cs +++ b/src/Foundation/NSMutableOrderedSet_1.cs @@ -233,6 +233,7 @@ IEnumerator IEnumerable.GetEnumerator () return copy; } +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 #if !NET [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] #else @@ -244,5 +245,6 @@ public void ApplyDifference (NSOrderedCollectionDifference difference) throw new ArgumentNullException (nameof (difference)); _ApplyDifference (difference.Handle); } +#endif } } diff --git a/src/Foundation/NSOrderedCollectionDifference.cs b/src/Foundation/NSOrderedCollectionDifference.cs index 774480d70e97..3541c204ed61 100644 --- a/src/Foundation/NSOrderedCollectionDifference.cs +++ b/src/Foundation/NSOrderedCollectionDifference.cs @@ -8,7 +8,7 @@ using ObjCRuntime; namespace Foundation { - +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 public delegate NSOrderedCollectionDifference? NSOrderedCollectionDifferenceGetDifferenceHandler (NSOrderedCollectionChange? collectionChange); #if !NET @@ -52,4 +52,5 @@ public partial class NSOrderedCollectionDifference } } +#endif } diff --git a/src/Foundation/NSOrderedCollectionDifference_1.cs b/src/Foundation/NSOrderedCollectionDifference_1.cs index e7e0a5e0b228..ff0fab07a955 100644 --- a/src/Foundation/NSOrderedCollectionDifference_1.cs +++ b/src/Foundation/NSOrderedCollectionDifference_1.cs @@ -11,7 +11,7 @@ using ObjCRuntime; namespace Foundation { - +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 #if !NET [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] #else @@ -65,4 +65,5 @@ public NSOrderedCollectionDifference (NSIndexSet inserts, TKey[]? insertedObject } } +#endif } diff --git a/src/Foundation/NSOrderedSet.cs b/src/Foundation/NSOrderedSet.cs index 4af0e0210adf..25a4108b1c48 100644 --- a/src/Foundation/NSOrderedSet.cs +++ b/src/Foundation/NSOrderedSet.cs @@ -195,6 +195,7 @@ public NSMutableOrderedSet (params string [] strings) : this (NSArray.FromString } } +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 delegate bool NSOrderedCollectionDifferenceEquivalenceTestProxy (IntPtr blockLiteral, /* NSObject */ IntPtr first, /* NSObject */ IntPtr second); static readonly NSOrderedCollectionDifferenceEquivalenceTestProxy static_DiffEquality = DiffEqualityHandler; @@ -228,6 +229,6 @@ public NSOrderedCollectionDifference GetDifference (NSOrderedSet other, NSOrdere block.CleanupBlock (); } } - +#endif } } diff --git a/src/Foundation/NSOrderedSet_1.cs b/src/Foundation/NSOrderedSet_1.cs index e3b7e33b8ec7..276dd0ca2c2a 100644 --- a/src/Foundation/NSOrderedSet_1.cs +++ b/src/Foundation/NSOrderedSet_1.cs @@ -204,7 +204,9 @@ public override int GetHashCode () { return (int) GetNativeHash (); } - + +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 + #if !NET [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] #else @@ -264,5 +266,6 @@ static bool DiffEqualityHandlerGeneric (IntPtr block, IntPtr first, IntPtr secon block.CleanupBlock (); } } +#endif } } diff --git a/src/foundation.cs b/src/foundation.cs index e9cad97cbeae..7351e0cbca26 100644 --- a/src/foundation.cs +++ b/src/foundation.cs @@ -244,6 +244,7 @@ interface NSArray : NSSecureCoding, NSMutableCopying, INSFastEnumeration, CKReco [return: NullAllowed] NSArray FromUrl (NSUrl url, out NSError error); +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] [Internal] [Export ("differenceFromArray:withOptions:")] @@ -278,6 +279,7 @@ interface NSArray : NSSecureCoding, NSMutableCopying, INSFastEnumeration, CKReco [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] [Export ("differenceFromArray:withOptions:usingEquivalenceTest:")] NativeHandle _GetDifferenceFromArray (NSArray other, NSOrderedCollectionDifferenceCalculationOptions options, /* Func block */ ref BlockLiteral block); +#endif } #if MONOMAC @@ -3735,9 +3737,11 @@ interface NSMutableArray { [Static, Export ("arrayWithContentsOfURL:")] NSMutableArray FromUrl (NSUrl url); +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] [Export ("applyDifference:")] void ApplyDifference (NSOrderedCollectionDifference difference); +#endif } interface NSMutableArray : NSMutableArray {} @@ -9519,7 +9523,8 @@ interface NSOrderedSet : NSSecureCoding, NSMutableCopying { [Export ("reversedOrderedSet")] NSOrderedSet GetReverseOrderedSet (); - + +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] [Wrap ("Runtime.GetNSObject (_GetDifference (other, options))")] [return: NullAllowed] @@ -9555,6 +9560,7 @@ interface NSOrderedSet : NSSecureCoding, NSMutableCopying { [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] [Export ("differenceFromOrderedSet:withOptions:usingEquivalenceTest:")] /* NSOrderedCollectionDifference*/ IntPtr _GetDifference (NSOrderedSet other, NSOrderedCollectionDifferenceCalculationOptions options, /* Func */ ref BlockLiteral block); +#endif } interface NSMutableOrderedSet : NSMutableOrderedSet {} @@ -9695,6 +9701,7 @@ interface NSMutableOrderedSet { [Export ("sortRange:options:usingComparator:")] void SortRange (NSRange range, NSSortOptions sortOptions, NSComparator comparator); +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 [Internal] [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] [Export ("applyDifference:")] @@ -9704,6 +9711,7 @@ interface NSMutableOrderedSet { [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] [Export ("applyDifference:")] void ApplyDifference (NSOrderedCollectionDifference difference); +#endif } [BaseType (typeof (NSObject))] @@ -17118,7 +17126,8 @@ interface NSOrderedCollectionChange [DesignatedInitializer] NativeHandle Constructor ([NullAllowed] NSObject anObject, NSCollectionChangeType type, nuint index, nuint associatedIndex); } - + +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 interface NSOrderedCollectionDifference : NSOrderedCollectionDifference {} [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] @@ -17163,4 +17172,5 @@ interface NSOrderedCollectionDifference : INSFastEnumeration [Export ("inverseDifference")] NativeHandle _InverseDifference (); } +#endif } diff --git a/src/generator.cs b/src/generator.cs index 0da00cc98258..70ff456333a9 100644 --- a/src/generator.cs +++ b/src/generator.cs @@ -1802,7 +1802,7 @@ public TrampolineInfo MakeTrampoline (Type t) } var rt = mi.ReturnType; - var rts = IsNativeEnum (rt) ? "var" : RenderType (rt); + var rts = IsNativeEnum (rt) ? "var" : rt.ToString (); var trampoline_name = MakeTrampolineName (t); var ti = new TrampolineInfo (userDelegate: FormatType (null, t), delegateName: "D" + trampoline_name, diff --git a/tests/monotouch-test/Foundation/NSArray1Test.cs b/tests/monotouch-test/Foundation/NSArray1Test.cs index df700c7b2285..53279c734487 100644 --- a/tests/monotouch-test/Foundation/NSArray1Test.cs +++ b/tests/monotouch-test/Foundation/NSArray1Test.cs @@ -96,6 +96,7 @@ public void FromNSObjectsNullTest () } } +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 [Test] public void GetDifferenceFromArrayTest () { @@ -118,5 +119,6 @@ public void GetDifferenceFromArrayTest () }, "Not throws"); Assert.NotNull (diff, "Not null"); } +#endif } } diff --git a/tests/monotouch-test/Foundation/NSOrderedCollectionDifference1Test.cs b/tests/monotouch-test/Foundation/NSOrderedCollectionDifference1Test.cs index ba23b26e6d48..8ede9cd66439 100644 --- a/tests/monotouch-test/Foundation/NSOrderedCollectionDifference1Test.cs +++ b/tests/monotouch-test/Foundation/NSOrderedCollectionDifference1Test.cs @@ -7,6 +7,7 @@ using Foundation; namespace MonoTouchFixtures.Foundation { +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 [TestFixture] [Preserve (AllMembers = true)] public class NSOrderedCollectionDifference1Test { @@ -26,4 +27,5 @@ public void InsertionsAndRemovalsTest () }); } } +#endif } diff --git a/tests/monotouch-test/Foundation/NSOrderedCollectionDifferenceTest.cs b/tests/monotouch-test/Foundation/NSOrderedCollectionDifferenceTest.cs index 7b2d7d4a9660..6d4e48cfdf46 100644 --- a/tests/monotouch-test/Foundation/NSOrderedCollectionDifferenceTest.cs +++ b/tests/monotouch-test/Foundation/NSOrderedCollectionDifferenceTest.cs @@ -7,6 +7,7 @@ using Foundation; namespace MonoTouchFixtures.Foundation { +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 [TestFixture] [Preserve (AllMembers = true)] public class NSOrderedCollectionDifferenceTest { @@ -26,4 +27,5 @@ public void InsertionsAndRemovalsTest () }); } } +#endif } From 5a3443a2df6dd7f4dd684cdd6bfec59272d7f4d9 Mon Sep 17 00:00:00 2001 From: Chris Hamons Date: Tue, 26 Jul 2022 15:41:30 -0500 Subject: [PATCH 03/12] More review changes --- src/Foundation/NSOrderedCollectionChange.cs | 4 ++-- src/Foundation/NSOrderedCollectionChange_1.cs | 3 ++- src/foundation.cs | 4 ++-- tests/monotouch-test/monotouch-test.csproj | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Foundation/NSOrderedCollectionChange.cs b/src/Foundation/NSOrderedCollectionChange.cs index 9c9eb84d5ded..4280330cf2a9 100644 --- a/src/Foundation/NSOrderedCollectionChange.cs +++ b/src/Foundation/NSOrderedCollectionChange.cs @@ -9,7 +9,7 @@ #nullable enable namespace Foundation { - +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 #if !NET [iOS (13,0), TV (13,0), Mac (10,15), Watch (6,0)] #else @@ -25,6 +25,6 @@ public static NSOrderedCollectionChange ChangeWithObject (NSObject? anObject, NS => new NSOrderedCollectionChange (NSOrderedCollectionChange._ChangeWithObject (anObject.GetHandle (), type, index, associatedIndex)); public NSObject? Object => Runtime.GetNSObject (_Object); - } +#endif } diff --git a/src/Foundation/NSOrderedCollectionChange_1.cs b/src/Foundation/NSOrderedCollectionChange_1.cs index 78735a72a054..289cf45e8d62 100644 --- a/src/Foundation/NSOrderedCollectionChange_1.cs +++ b/src/Foundation/NSOrderedCollectionChange_1.cs @@ -9,7 +9,7 @@ #nullable enable namespace Foundation { - +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 #if !NET [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] #else @@ -41,4 +41,5 @@ public NSOrderedCollectionChange (TKey? anObject, NSCollectionChangeType type, n public TKey? Object => Runtime.GetINativeObject (_Object, true); } +#endif } diff --git a/src/foundation.cs b/src/foundation.cs index 7351e0cbca26..d40092bced4e 100644 --- a/src/foundation.cs +++ b/src/foundation.cs @@ -17079,7 +17079,8 @@ interface NSMorphologyCustomPronoun : NSCopying, NSSecureCoding [NullAllowed, Export ("reflexiveForm")] string ReflexiveForm { get; set; } } - + +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 interface NSOrderedCollectionChange : NSOrderedCollectionChange {} [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] @@ -17127,7 +17128,6 @@ interface NSOrderedCollectionChange NativeHandle Constructor ([NullAllowed] NSObject anObject, NSCollectionChangeType type, nuint index, nuint associatedIndex); } -#if false // https://github.com/xamarin/xamarin-macios/issues/15577 interface NSOrderedCollectionDifference : NSOrderedCollectionDifference {} [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] diff --git a/tests/monotouch-test/monotouch-test.csproj b/tests/monotouch-test/monotouch-test.csproj index e450af0409c5..19e77aa2b97f 100644 --- a/tests/monotouch-test/monotouch-test.csproj +++ b/tests/monotouch-test/monotouch-test.csproj @@ -399,7 +399,7 @@ - + From f224e97c2c860f39daed92d6eca23cafc93ad834 Mon Sep 17 00:00:00 2001 From: Chris Hamons Date: Tue, 26 Jul 2022 16:50:36 -0500 Subject: [PATCH 04/12] Update tests and ignores --- .../NSOrderedCollectionChange1Test.cs | 2 + .../NSOrderedCollectionChangeTest.cs | 3 +- tests/monotouch-test/monotouch-test.sln | 46 +++++++++++++++++++ .../common-Foundation.ignore | 8 ++-- .../iOS-Foundation.todo | 29 ++++++++++++ .../macOS-Foundation.todo | 32 +++++++++++++ .../tvOS-CoreText.ignore | 5 +- .../tvOS-Foundation.todo | 32 +++++++++++++ tests/xtro-sharpie/common-Foundation.ignore | 10 ++-- tests/xtro-sharpie/iOS-Foundation.todo | 31 +++++++++++++ tests/xtro-sharpie/macOS-Foundation.todo | 31 +++++++++++++ tests/xtro-sharpie/tvOS-Foundation.todo | 31 +++++++++++++ tests/xtro-sharpie/watchOS-Foundation.todo | 41 +++++++++++++---- 13 files changed, 281 insertions(+), 20 deletions(-) create mode 100644 tests/monotouch-test/monotouch-test.sln diff --git a/tests/monotouch-test/Foundation/NSOrderedCollectionChange1Test.cs b/tests/monotouch-test/Foundation/NSOrderedCollectionChange1Test.cs index 2eebcaf25520..0c4f53973e2e 100644 --- a/tests/monotouch-test/Foundation/NSOrderedCollectionChange1Test.cs +++ b/tests/monotouch-test/Foundation/NSOrderedCollectionChange1Test.cs @@ -5,6 +5,7 @@ using Foundation; namespace MonoTouchFixtures.Foundation { +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 [TestFixture] [Preserve (AllMembers = true)] public class NSOrderedCollectionChange1Test { @@ -32,4 +33,5 @@ public void ChangeWithObjectWithAssociatedIndexTest () Assert.AreEqual ((nuint)1, change.AssociatedIndex); } } +#endif } diff --git a/tests/monotouch-test/Foundation/NSOrderedCollectionChangeTest.cs b/tests/monotouch-test/Foundation/NSOrderedCollectionChangeTest.cs index 6c6f55099f33..1ead127474b1 100644 --- a/tests/monotouch-test/Foundation/NSOrderedCollectionChangeTest.cs +++ b/tests/monotouch-test/Foundation/NSOrderedCollectionChangeTest.cs @@ -5,6 +5,7 @@ using Foundation; namespace MonoTouchFixtures.Foundation { +#if false // https://github.com/xamarin/xamarin-macios/issues/15577 [TestFixture] [Preserve (AllMembers = true)] public class NSOrderedCollectionChangeTest { @@ -31,6 +32,6 @@ public void ChangeWithObjectTestWithAssociatedindex () Assert.AreEqual ((nuint)0, change.Index, "Index"); Assert.AreEqual ((nuint)1, change.AssociatedIndex); } - } +#endif } diff --git a/tests/monotouch-test/monotouch-test.sln b/tests/monotouch-test/monotouch-test.sln new file mode 100644 index 000000000000..06e476be8496 --- /dev/null +++ b/tests/monotouch-test/monotouch-test.sln @@ -0,0 +1,46 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 25.0.1703.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "monotouch-test", "monotouch-test.csproj", "{AC6D070F-2ED4-4701-B701-81915B931D1D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|iPhoneSimulator = Debug|iPhoneSimulator + Release|iPhoneSimulator = Release|iPhoneSimulator + Debug|iPhone = Debug|iPhone + Debug64|iPhone = Debug64|iPhone + Debug32|iPhone = Debug32|iPhone + Release|iPhone = Release|iPhone + Release32|iPhone = Release32|iPhone + Release64|iPhone = Release64|iPhone + Release-bitcode|iPhone = Release-bitcode|iPhone + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {AC6D070F-2ED4-4701-B701-81915B931D1D}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator + {AC6D070F-2ED4-4701-B701-81915B931D1D}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator + {AC6D070F-2ED4-4701-B701-81915B931D1D}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator + {AC6D070F-2ED4-4701-B701-81915B931D1D}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator + {AC6D070F-2ED4-4701-B701-81915B931D1D}.Debug|iPhone.ActiveCfg = Debug|iPhone + {AC6D070F-2ED4-4701-B701-81915B931D1D}.Debug|iPhone.Build.0 = Debug|iPhone + {AC6D070F-2ED4-4701-B701-81915B931D1D}.Debug64|iPhone.ActiveCfg = Debug64|iPhone + {AC6D070F-2ED4-4701-B701-81915B931D1D}.Debug64|iPhone.Build.0 = Debug64|iPhone + {AC6D070F-2ED4-4701-B701-81915B931D1D}.Debug32|iPhone.ActiveCfg = Debug32|iPhone + {AC6D070F-2ED4-4701-B701-81915B931D1D}.Debug32|iPhone.Build.0 = Debug32|iPhone + {AC6D070F-2ED4-4701-B701-81915B931D1D}.Release|iPhone.ActiveCfg = Release|iPhone + {AC6D070F-2ED4-4701-B701-81915B931D1D}.Release|iPhone.Build.0 = Release|iPhone + {AC6D070F-2ED4-4701-B701-81915B931D1D}.Release32|iPhone.ActiveCfg = Release32|iPhone + {AC6D070F-2ED4-4701-B701-81915B931D1D}.Release32|iPhone.Build.0 = Release32|iPhone + {AC6D070F-2ED4-4701-B701-81915B931D1D}.Release64|iPhone.ActiveCfg = Release64|iPhone + {AC6D070F-2ED4-4701-B701-81915B931D1D}.Release64|iPhone.Build.0 = Release64|iPhone + {AC6D070F-2ED4-4701-B701-81915B931D1D}.Release-bitcode|iPhone.ActiveCfg = Release-bitcode|iPhone + {AC6D070F-2ED4-4701-B701-81915B931D1D}.Release-bitcode|iPhone.Build.0 = Release-bitcode|iPhone + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {543DAF37-A7B3-4593-96AC-2514551D2D3F} + EndGlobalSection +EndGlobal diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore index 599a1bf02b8c..2b1b0b34b2fc 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore @@ -4,7 +4,8 @@ !missing-protocol-conformance! NSDictionary should conform to NSFastEnumeration !missing-protocol-conformance! NSEnumerator should conform to NSFastEnumeration !missing-protocol-conformance! NSOrderedSet should conform to NSFastEnumeration -!missing-protocol-conformance! NSOrderedCollectionDifference should conform to NSFastEnumeration +# https://github.com/xamarin/xamarin-macios/issues/15577 +# !missing-protocol-conformance! NSOrderedCollectionDifference should conform to NSFastEnumeration !missing-protocol-conformance! NSSet should conform to NSFastEnumeration ## untyped enums (only values, not type name) NSError.h @@ -1374,5 +1375,6 @@ !extra-null-allowed! 'Foundation.NSUrl Foundation.NSUrl::FromString(System.String)' has a extraneous [NullAllowed] on parameter #0 # not exposed to users. -!extra-null-allowed! 'ObjCRuntime.NativeHandle Foundation.NSArray::_GetDifferenceFromArray(Foundation.NSArray,Foundation.NSOrderedCollectionDifferenceCalculationOptions,ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #2 -!extra-null-allowed! 'ObjCRuntime.NativeHandle Foundation.NSOrderedCollectionDifference::_GetDifference(ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #0 \ No newline at end of file +# https://github.com/xamarin/xamarin-macios/issues/15577 +# !extra-null-allowed! 'ObjCRuntime.NativeHandle Foundation.NSArray::_GetDifferenceFromArray(Foundation.NSArray,Foundation.NSOrderedCollectionDifferenceCalculationOptions,ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #2 +# !extra-null-allowed! 'ObjCRuntime.NativeHandle Foundation.NSOrderedCollectionDifference::_GetDifference(ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #0 \ No newline at end of file diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo index ed44f1b2304f..bae7029a490a 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo @@ -28,3 +28,32 @@ !missing-selector! NSXPCConnection::activate not bound !missing-selector! NSXPCListener::activate not bound !missing-type! NSAttributedStringMarkdownSourcePosition not bound +!missing-null-allowed! 'Foundation.NSExpression Foundation.NSExpression::FromFunction(Foundation.NSExpressionCallbackHandler,Foundation.NSExpression[])' is missing an [NullAllowed] on parameter #1 +!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound +!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound +!missing-selector! NSArray::arrayByApplyingDifference: not bound +!missing-selector! NSArray::differenceFromArray: not bound +!missing-selector! NSArray::differenceFromArray:withOptions: not bound +!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound +!missing-selector! NSMutableArray::applyDifference: not bound +!missing-selector! NSMutableOrderedSet::applyDifference: not bound +!missing-selector! NSOrderedCollectionChange::associatedIndex not bound +!missing-selector! NSOrderedCollectionChange::changeType not bound +!missing-selector! NSOrderedCollectionChange::index not bound +!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound +!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound +!missing-selector! NSOrderedCollectionChange::object not bound +!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound +!missing-selector! NSOrderedCollectionDifference::hasChanges not bound +!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound +!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound +!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound +!missing-selector! NSOrderedCollectionDifference::insertions not bound +!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound +!missing-selector! NSOrderedCollectionDifference::removals not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound +!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound +!missing-type! NSOrderedCollectionChange not bound +!missing-type! NSOrderedCollectionDifference not bound \ No newline at end of file diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo index f5aa1aa8ad98..91bf9283fc3a 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo @@ -30,3 +30,35 @@ !missing-selector! NSXPCListener::activate not bound !missing-selector! NSXPCListener::setConnectionCodeSigningRequirement: not bound !missing-type! NSAttributedStringMarkdownSourcePosition not bound + + +# https://github.com/xamarin/xamarin-macios/issues/15577 +!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound +!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound +!missing-selector! NSArray::arrayByApplyingDifference: not bound +!missing-selector! NSArray::differenceFromArray: not bound +!missing-selector! NSArray::differenceFromArray:withOptions: not bound +!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound +!missing-selector! NSMutableArray::applyDifference: not bound +!missing-selector! NSMutableOrderedSet::applyDifference: not bound +!missing-selector! NSOrderedCollectionChange::associatedIndex not bound +!missing-selector! NSOrderedCollectionChange::changeType not bound +!missing-selector! NSOrderedCollectionChange::index not bound +!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound +!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound +!missing-selector! NSOrderedCollectionChange::object not bound +!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound +!missing-selector! NSOrderedCollectionDifference::hasChanges not bound +!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound +!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound +!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound +!missing-selector! NSOrderedCollectionDifference::insertions not bound +!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound +!missing-selector! NSOrderedCollectionDifference::removals not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound +!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound +!missing-type! NSOrderedCollectionChange not bound +!missing-type! NSOrderedCollectionDifference not bound +!missing-null-allowed! 'Foundation.NSExpression Foundation.NSExpression::FromFunction(Foundation.NSExpressionCallbackHandler,Foundation.NSExpression[])' is missing an [NullAllowed] on parameter #1 \ No newline at end of file diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-CoreText.ignore b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-CoreText.ignore index ac1463bccb5e..ecbe396e43b8 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-CoreText.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-CoreText.ignore @@ -1,3 +1,4 @@ # bound in previous versions but removed in xcode 14 -!extra-enum-value! Managed value 1 for CTFontTableOptions.ExcludeSynthetic is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 10 for CTParagraphStyleSpecifier.LineSpacing is available for the current platform while the value in the native header is not +# https://github.com/xamarin/xamarin-macios/issues/15577 +# !extra-enum-value! Managed value 1 for CTFontTableOptions.ExcludeSynthetic is available for the current platform while the value in the native header is not +# !extra-enum-value! Managed value 10 for CTParagraphStyleSpecifier.LineSpacing is available for the current platform while the value in the native header is not diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.todo index 59fa15257b3d..db30053dd096 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.todo @@ -35,3 +35,35 @@ !missing-selector! NSXPCConnection::activate not bound !missing-selector! NSXPCListener::activate not bound !missing-type! NSAttributedStringMarkdownSourcePosition not bound + + +# https://github.com/xamarin/xamarin-macios/issues/15577 +!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound +!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound +!missing-selector! NSArray::arrayByApplyingDifference: not bound +!missing-selector! NSArray::differenceFromArray: not bound +!missing-selector! NSArray::differenceFromArray:withOptions: not bound +!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound +!missing-selector! NSMutableArray::applyDifference: not bound +!missing-selector! NSMutableOrderedSet::applyDifference: not bound +!missing-selector! NSOrderedCollectionChange::associatedIndex not bound +!missing-selector! NSOrderedCollectionChange::changeType not bound +!missing-selector! NSOrderedCollectionChange::index not bound +!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound +!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound +!missing-selector! NSOrderedCollectionChange::object not bound +!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound +!missing-selector! NSOrderedCollectionDifference::hasChanges not bound +!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound +!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound +!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound +!missing-selector! NSOrderedCollectionDifference::insertions not bound +!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound +!missing-selector! NSOrderedCollectionDifference::removals not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound +!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound +!missing-type! NSOrderedCollectionChange not bound +!missing-type! NSOrderedCollectionDifference not bound +!missing-null-allowed! 'Foundation.NSExpression Foundation.NSExpression::FromFunction(Foundation.NSExpressionCallbackHandler,Foundation.NSExpression[])' is missing an [NullAllowed] on parameter #1 \ No newline at end of file diff --git a/tests/xtro-sharpie/common-Foundation.ignore b/tests/xtro-sharpie/common-Foundation.ignore index 3c43adbf44eb..8aecf5dc02e9 100644 --- a/tests/xtro-sharpie/common-Foundation.ignore +++ b/tests/xtro-sharpie/common-Foundation.ignore @@ -4,7 +4,8 @@ !missing-protocol-conformance! NSDictionary should conform to NSFastEnumeration !missing-protocol-conformance! NSEnumerator should conform to NSFastEnumeration !missing-protocol-conformance! NSOrderedSet should conform to NSFastEnumeration -!missing-protocol-conformance! NSOrderedCollectionDifference should conform to NSFastEnumeration +# https://github.com/xamarin/xamarin-macios/issues/15577 +# !missing-protocol-conformance! NSOrderedCollectionDifference should conform to NSFastEnumeration !missing-protocol-conformance! NSSet should conform to NSFastEnumeration ## untyped enums (only values, not type name) NSError.h @@ -1389,6 +1390,7 @@ !missing-selector! NSMutableAttributedString::appendLocalizedFormat: not bound # ignore because we did not add nullallowed but are using ref -!extra-null-allowed! 'System.IntPtr Foundation.NSArray::_GetDifferenceFromArray(Foundation.NSArray,Foundation.NSOrderedCollectionDifferenceCalculationOptions,ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #2 -!extra-null-allowed! 'System.IntPtr Foundation.NSOrderedCollectionDifference::_GetDifference(ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #0 -!extra-null-allowed! 'System.IntPtr Foundation.NSOrderedSet::_GetDifference(Foundation.NSOrderedSet,Foundation.NSOrderedCollectionDifferenceCalculationOptions,ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #2 +# https://github.com/xamarin/xamarin-macios/issues/15577 +# !extra-null-allowed! 'System.IntPtr Foundation.NSArray::_GetDifferenceFromArray(Foundation.NSArray,Foundation.NSOrderedCollectionDifferenceCalculationOptions,ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #2 +# !extra-null-allowed! 'System.IntPtr Foundation.NSOrderedCollectionDifference::_GetDifference(ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #0 +# !extra-null-allowed! 'System.IntPtr Foundation.NSOrderedSet::_GetDifference(Foundation.NSOrderedSet,Foundation.NSOrderedCollectionDifferenceCalculationOptions,ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #2 diff --git a/tests/xtro-sharpie/iOS-Foundation.todo b/tests/xtro-sharpie/iOS-Foundation.todo index 6c4359a78592..4320e262c2d8 100644 --- a/tests/xtro-sharpie/iOS-Foundation.todo +++ b/tests/xtro-sharpie/iOS-Foundation.todo @@ -23,3 +23,34 @@ !missing-selector! NSXPCConnection::activate not bound !missing-selector! NSXPCListener::activate not bound !missing-type! NSAttributedStringMarkdownSourcePosition not bound + + +# https://github.com/xamarin/xamarin-macios/issues/15577 +!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound +!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound +!missing-selector! NSArray::arrayByApplyingDifference: not bound +!missing-selector! NSArray::differenceFromArray: not bound +!missing-selector! NSArray::differenceFromArray:withOptions: not bound +!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound +!missing-selector! NSMutableArray::applyDifference: not bound +!missing-selector! NSMutableOrderedSet::applyDifference: not bound +!missing-selector! NSOrderedCollectionChange::associatedIndex not bound +!missing-selector! NSOrderedCollectionChange::changeType not bound +!missing-selector! NSOrderedCollectionChange::index not bound +!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound +!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound +!missing-selector! NSOrderedCollectionChange::object not bound +!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound +!missing-selector! NSOrderedCollectionDifference::hasChanges not bound +!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound +!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound +!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound +!missing-selector! NSOrderedCollectionDifference::insertions not bound +!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound +!missing-selector! NSOrderedCollectionDifference::removals not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound +!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound +!missing-type! NSOrderedCollectionChange not bound +!missing-type! NSOrderedCollectionDifference not bound diff --git a/tests/xtro-sharpie/macOS-Foundation.todo b/tests/xtro-sharpie/macOS-Foundation.todo index d9f4fa623577..2c3936131cb3 100644 --- a/tests/xtro-sharpie/macOS-Foundation.todo +++ b/tests/xtro-sharpie/macOS-Foundation.todo @@ -25,3 +25,34 @@ !missing-selector! NSXPCListener::activate not bound !missing-selector! NSXPCListener::setConnectionCodeSigningRequirement: not bound !missing-type! NSAttributedStringMarkdownSourcePosition not bound + + +# https://github.com/xamarin/xamarin-macios/issues/15577 +!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound +!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound +!missing-selector! NSArray::arrayByApplyingDifference: not bound +!missing-selector! NSArray::differenceFromArray: not bound +!missing-selector! NSArray::differenceFromArray:withOptions: not bound +!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound +!missing-selector! NSMutableArray::applyDifference: not bound +!missing-selector! NSMutableOrderedSet::applyDifference: not bound +!missing-selector! NSOrderedCollectionChange::associatedIndex not bound +!missing-selector! NSOrderedCollectionChange::changeType not bound +!missing-selector! NSOrderedCollectionChange::index not bound +!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound +!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound +!missing-selector! NSOrderedCollectionChange::object not bound +!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound +!missing-selector! NSOrderedCollectionDifference::hasChanges not bound +!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound +!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound +!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound +!missing-selector! NSOrderedCollectionDifference::insertions not bound +!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound +!missing-selector! NSOrderedCollectionDifference::removals not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound +!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound +!missing-type! NSOrderedCollectionChange not bound +!missing-type! NSOrderedCollectionDifference not bound diff --git a/tests/xtro-sharpie/tvOS-Foundation.todo b/tests/xtro-sharpie/tvOS-Foundation.todo index 6c4359a78592..4320e262c2d8 100644 --- a/tests/xtro-sharpie/tvOS-Foundation.todo +++ b/tests/xtro-sharpie/tvOS-Foundation.todo @@ -23,3 +23,34 @@ !missing-selector! NSXPCConnection::activate not bound !missing-selector! NSXPCListener::activate not bound !missing-type! NSAttributedStringMarkdownSourcePosition not bound + + +# https://github.com/xamarin/xamarin-macios/issues/15577 +!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound +!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound +!missing-selector! NSArray::arrayByApplyingDifference: not bound +!missing-selector! NSArray::differenceFromArray: not bound +!missing-selector! NSArray::differenceFromArray:withOptions: not bound +!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound +!missing-selector! NSMutableArray::applyDifference: not bound +!missing-selector! NSMutableOrderedSet::applyDifference: not bound +!missing-selector! NSOrderedCollectionChange::associatedIndex not bound +!missing-selector! NSOrderedCollectionChange::changeType not bound +!missing-selector! NSOrderedCollectionChange::index not bound +!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound +!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound +!missing-selector! NSOrderedCollectionChange::object not bound +!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound +!missing-selector! NSOrderedCollectionDifference::hasChanges not bound +!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound +!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound +!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound +!missing-selector! NSOrderedCollectionDifference::insertions not bound +!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound +!missing-selector! NSOrderedCollectionDifference::removals not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound +!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound +!missing-type! NSOrderedCollectionChange not bound +!missing-type! NSOrderedCollectionDifference not bound diff --git a/tests/xtro-sharpie/watchOS-Foundation.todo b/tests/xtro-sharpie/watchOS-Foundation.todo index 7ff0d2c8f4e5..4320e262c2d8 100644 --- a/tests/xtro-sharpie/watchOS-Foundation.todo +++ b/tests/xtro-sharpie/watchOS-Foundation.todo @@ -4,16 +4,6 @@ !missing-enum-value! NSActivityOptions native value NSActivityTrackingEnabled = 70368744177664 not bound !missing-enum-value! NSActivityOptions native value NSActivityUserInteractive = 1095233437695 not bound !missing-field! NSMarkdownSourcePositionAttributeName not bound -!missing-null-allowed! 'Foundation.NSData Foundation.NSUbiquitousKeyValueStore::GetData(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSDictionary Foundation.NSUbiquitousKeyValueStore::GetDictionary(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSObject Foundation.NSUbiquitousKeyValueStore::ObjectForKey(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSObject[] Foundation.NSUbiquitousKeyValueStore::GetArray(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.String Foundation.NSUbiquitousKeyValueStore::GetString(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetArray(Foundation.NSObject[],System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetData(Foundation.NSData,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetDictionary(Foundation.NSDictionary,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetString(System.String,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::SetObjectForKey(Foundation.NSObject,System.String)' is missing an [NullAllowed] on parameter #0 !missing-protocol-member! NSURLSessionTaskDelegate::URLSession:didCreateTask: not found !missing-selector! NSAttributedStringMarkdownParsingOptions::appliesSourcePositionAttributes not bound !missing-selector! NSAttributedStringMarkdownParsingOptions::setAppliesSourcePositionAttributes: not bound @@ -33,3 +23,34 @@ !missing-selector! NSXPCConnection::activate not bound !missing-selector! NSXPCListener::activate not bound !missing-type! NSAttributedStringMarkdownSourcePosition not bound + + +# https://github.com/xamarin/xamarin-macios/issues/15577 +!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound +!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound +!missing-selector! NSArray::arrayByApplyingDifference: not bound +!missing-selector! NSArray::differenceFromArray: not bound +!missing-selector! NSArray::differenceFromArray:withOptions: not bound +!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound +!missing-selector! NSMutableArray::applyDifference: not bound +!missing-selector! NSMutableOrderedSet::applyDifference: not bound +!missing-selector! NSOrderedCollectionChange::associatedIndex not bound +!missing-selector! NSOrderedCollectionChange::changeType not bound +!missing-selector! NSOrderedCollectionChange::index not bound +!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound +!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound +!missing-selector! NSOrderedCollectionChange::object not bound +!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound +!missing-selector! NSOrderedCollectionDifference::hasChanges not bound +!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound +!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound +!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound +!missing-selector! NSOrderedCollectionDifference::insertions not bound +!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound +!missing-selector! NSOrderedCollectionDifference::removals not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound +!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound +!missing-type! NSOrderedCollectionChange not bound +!missing-type! NSOrderedCollectionDifference not bound From 256e12c544f1fab33a96bdbab3576cb6baa0d429 Mon Sep 17 00:00:00 2001 From: Chris Hamons Date: Wed, 27 Jul 2022 10:07:54 -0500 Subject: [PATCH 05/12] Remove empty file --- tests/monotouch-test/monotouch-test.sln | 46 ------------------------- 1 file changed, 46 deletions(-) delete mode 100644 tests/monotouch-test/monotouch-test.sln diff --git a/tests/monotouch-test/monotouch-test.sln b/tests/monotouch-test/monotouch-test.sln deleted file mode 100644 index 06e476be8496..000000000000 --- a/tests/monotouch-test/monotouch-test.sln +++ /dev/null @@ -1,46 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 25.0.1703.0 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "monotouch-test", "monotouch-test.csproj", "{AC6D070F-2ED4-4701-B701-81915B931D1D}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|iPhoneSimulator = Debug|iPhoneSimulator - Release|iPhoneSimulator = Release|iPhoneSimulator - Debug|iPhone = Debug|iPhone - Debug64|iPhone = Debug64|iPhone - Debug32|iPhone = Debug32|iPhone - Release|iPhone = Release|iPhone - Release32|iPhone = Release32|iPhone - Release64|iPhone = Release64|iPhone - Release-bitcode|iPhone = Release-bitcode|iPhone - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {AC6D070F-2ED4-4701-B701-81915B931D1D}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator - {AC6D070F-2ED4-4701-B701-81915B931D1D}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator - {AC6D070F-2ED4-4701-B701-81915B931D1D}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator - {AC6D070F-2ED4-4701-B701-81915B931D1D}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator - {AC6D070F-2ED4-4701-B701-81915B931D1D}.Debug|iPhone.ActiveCfg = Debug|iPhone - {AC6D070F-2ED4-4701-B701-81915B931D1D}.Debug|iPhone.Build.0 = Debug|iPhone - {AC6D070F-2ED4-4701-B701-81915B931D1D}.Debug64|iPhone.ActiveCfg = Debug64|iPhone - {AC6D070F-2ED4-4701-B701-81915B931D1D}.Debug64|iPhone.Build.0 = Debug64|iPhone - {AC6D070F-2ED4-4701-B701-81915B931D1D}.Debug32|iPhone.ActiveCfg = Debug32|iPhone - {AC6D070F-2ED4-4701-B701-81915B931D1D}.Debug32|iPhone.Build.0 = Debug32|iPhone - {AC6D070F-2ED4-4701-B701-81915B931D1D}.Release|iPhone.ActiveCfg = Release|iPhone - {AC6D070F-2ED4-4701-B701-81915B931D1D}.Release|iPhone.Build.0 = Release|iPhone - {AC6D070F-2ED4-4701-B701-81915B931D1D}.Release32|iPhone.ActiveCfg = Release32|iPhone - {AC6D070F-2ED4-4701-B701-81915B931D1D}.Release32|iPhone.Build.0 = Release32|iPhone - {AC6D070F-2ED4-4701-B701-81915B931D1D}.Release64|iPhone.ActiveCfg = Release64|iPhone - {AC6D070F-2ED4-4701-B701-81915B931D1D}.Release64|iPhone.Build.0 = Release64|iPhone - {AC6D070F-2ED4-4701-B701-81915B931D1D}.Release-bitcode|iPhone.ActiveCfg = Release-bitcode|iPhone - {AC6D070F-2ED4-4701-B701-81915B931D1D}.Release-bitcode|iPhone.Build.0 = Release-bitcode|iPhone - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {543DAF37-A7B3-4593-96AC-2514551D2D3F} - EndGlobalSection -EndGlobal From 02f45557ff6c0d332b35bad58bf05077a4ef1e12 Mon Sep 17 00:00:00 2001 From: Chris Hamons Date: Wed, 27 Jul 2022 11:09:26 -0500 Subject: [PATCH 06/12] Code review changes from old PR --- src/foundation.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/foundation.cs b/src/foundation.cs index d40092bced4e..846edcf23a7c 100644 --- a/src/foundation.cs +++ b/src/foundation.cs @@ -1829,7 +1829,7 @@ interface NSByteCountFormatter { [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] [Static] [Export ("stringFromMeasurement:countStyle:")] - string StringFromMeasurement (NSUnitInformationStorage measurement, NSByteCountFormatterCountStyle countStyle); + string Create (NSUnitInformationStorage measurement, NSByteCountFormatterCountStyle countStyle); [Watch (6,0), TV (13,0), Mac (10,15), iOS (13,0)] [Export ("stringFromMeasurement:")] @@ -7465,6 +7465,10 @@ partial interface NSUrlSessionTask : NSCopying, NSProgressReporting [NullAllowed, Export ("delegate", ArgumentSemantic.Retain)] NSObject WeakDelegate { get; set; } + [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Wrap ("WeakDelegate")] + [NullAllowed] + INSUrlSessionTaskDelegate Delegate { get; set; } } [Static] @@ -7718,6 +7722,8 @@ partial interface NSUrlSessionDelegate { void DidFinishEventsForBackgroundSession (NSUrlSession session); } + public interface INSUrlSessionTaskDelegate {} + [iOS (7,0)] [Mac (10, 9)] [Model] From e9708806e8f66825e7420c5ef6356615e13a6fbc Mon Sep 17 00:00:00 2001 From: Chris Hamons Date: Wed, 27 Jul 2022 11:12:07 -0500 Subject: [PATCH 07/12] Add code review comments on tests not corrected as they are disabled --- tests/monotouch-test/Foundation/NSArray1Test.cs | 2 ++ .../Foundation/NSOrderedCollectionDifference1Test.cs | 4 ++++ .../Foundation/NSOrderedCollectionDifferenceTest.cs | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/tests/monotouch-test/Foundation/NSArray1Test.cs b/tests/monotouch-test/Foundation/NSArray1Test.cs index 53279c734487..39f343584ed2 100644 --- a/tests/monotouch-test/Foundation/NSArray1Test.cs +++ b/tests/monotouch-test/Foundation/NSArray1Test.cs @@ -117,6 +117,8 @@ public void GetDifferenceFromArrayTest () return first.ToString ().Equals (second.ToString ()); }); }, "Not throws"); + // https://github.com/xamarin/xamarin-macios/issues/15577 - Did not rewrite tests that were disabled + // Maybe assert that we get a specific diff result as well? Assert.NotNull (diff, "Not null"); } #endif diff --git a/tests/monotouch-test/Foundation/NSOrderedCollectionDifference1Test.cs b/tests/monotouch-test/Foundation/NSOrderedCollectionDifference1Test.cs index 8ede9cd66439..c961c9062385 100644 --- a/tests/monotouch-test/Foundation/NSOrderedCollectionDifference1Test.cs +++ b/tests/monotouch-test/Foundation/NSOrderedCollectionDifference1Test.cs @@ -25,6 +25,10 @@ public void InsertionsAndRemovalsTest () Assert.DoesNotThrow (() => { var r = diff.Removals; }); + // https://github.com/xamarin/xamarin-macios/issues/15577 - Did not rewrite tests that were disabled + // Any reason for not asserting on the returned value? + // Assert.AreEqual (1, diff.Insertions.Length, "insertions"); + // (or whatever it's supposed to return) } } #endif diff --git a/tests/monotouch-test/Foundation/NSOrderedCollectionDifferenceTest.cs b/tests/monotouch-test/Foundation/NSOrderedCollectionDifferenceTest.cs index 6d4e48cfdf46..7d1f196d2976 100644 --- a/tests/monotouch-test/Foundation/NSOrderedCollectionDifferenceTest.cs +++ b/tests/monotouch-test/Foundation/NSOrderedCollectionDifferenceTest.cs @@ -25,6 +25,10 @@ public void InsertionsAndRemovalsTest () Assert.DoesNotThrow (() => { var r = diff.Removals; }); + // https://github.com/xamarin/xamarin-macios/issues/15577 - Did not rewrite tests that were disabled + // Any reason for not asserting on the returned value? + // Assert.AreEqual (1, diff.Insertions.Length, "insertions"); + // (or whatever it's supposed to return) } } #endif From a1f078e4e7e403baf30b7c1224d2791efc9dc109 Mon Sep 17 00:00:00 2001 From: Chris Hamons Date: Wed, 27 Jul 2022 15:09:17 -0500 Subject: [PATCH 08/12] [foundation] Xcode 14 Beta 1-3 --- src/Foundation/Enum.cs | 4 ++ src/foundation.cs | 71 +++++++++++++++++++ .../MacCatalyst-Foundation.todo | 27 +------ .../common-Foundation.ignore | 5 +- .../iOS-Foundation.todo | 25 ------- .../macOS-Foundation.todo | 27 ------- .../tvOS-Foundation.todo | 26 ------- tests/xtro-sharpie/common-Foundation.ignore | 3 + tests/xtro-sharpie/iOS-Foundation.todo | 27 ------- tests/xtro-sharpie/macOS-Foundation.todo | 29 -------- tests/xtro-sharpie/tvOS-Foundation.todo | 27 ------- tests/xtro-sharpie/watchOS-Foundation.todo | 27 ------- 12 files changed, 83 insertions(+), 215 deletions(-) diff --git a/src/Foundation/Enum.cs b/src/Foundation/Enum.cs index eda536c3b4a4..c168fdd71699 100644 --- a/src/Foundation/Enum.cs +++ b/src/Foundation/Enum.cs @@ -372,6 +372,7 @@ public enum NSCocoaError : int { XpcConnectionInterrupted = 4097, XpcConnectionInvalid = 4099, XpcConnectionReplyInvalid = 4101, + XpcConnectionCodeSigningRequirementFailure = 4102, XpcConnectionErrorMinimum = 4096, XpcConnectionErrorMaximum = 4224, @@ -1044,6 +1045,9 @@ public enum NSActivityOptions : ulong { IdleSystemSleepDisabled = 1UL << 20, SuddenTerminationDisabled = 1UL << 14, AutomaticTerminationDisabled = 1UL << 15, + AnimationTrackingEnabled = 1uL << 45, + TrackingEnabled = 1uL << 46, + UserInteractive = (UserInitiated | LatencyCritical), UserInitiated = 0x00FFFFFFUL | IdleSystemSleepDisabled, Background = 0x000000ffUL, LatencyCritical = 0xFF00000000UL, diff --git a/src/foundation.cs b/src/foundation.cs index 846edcf23a7c..54fc54b0fb78 100644 --- a/src/foundation.cs +++ b/src/foundation.cs @@ -697,6 +697,10 @@ public enum NSAttributedStringNameKey { [Field ("NSLanguageIdentifierAttributeName")] LanguageIdentifier, + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0)] + [Field ("NSMarkdownSourcePositionAttributeName")] + MarkdownSourcePosition, + [Field ("NSMorphologyAttributeName")] Morphology, @@ -6742,8 +6746,13 @@ partial interface NSUrlComponents : NSCopying { string PercentEncodedPassword { get; set; } [NullAllowed] // by default this property is null + [Advice ("Use 'EncodedHost' instead.")] [Export ("percentEncodedHost", ArgumentSemantic.Copy)] string PercentEncodedHost { get; set; } + + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0)] + [NullAllowed, Export ("encodedHost")] + string EncodedHost { get; set; } [NullAllowed] // by default this property is null [Export ("percentEncodedPath", ArgumentSemantic.Copy)] @@ -7704,6 +7713,10 @@ ProxyConfigurationDictionary StrongConnectionProxyDictionary { [Watch (6, 0), TV (13, 0), Mac (10, 15), iOS (13, 0)] [Export ("allowsConstrainedNetworkAccess")] bool AllowsConstrainedNetworkAccess { get; set; } + + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0)] + [Export ("requiresDNSSECValidation")] + bool RequiresDnsSecValidation { get; set; } } [iOS (7,0)] @@ -7757,6 +7770,10 @@ partial interface NSUrlSessionTaskDelegate { [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] [Export ("URLSession:taskIsWaitingForConnectivity:")] void TaskIsWaitingForConnectivity (NSUrlSession session, NSUrlSessionTask task); + + [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0)] + [Export ("URLSession:didCreateTask:")] + void DidCreateTask (NSUrlSession session, NSUrlSessionTask task); } [iOS (7,0)] @@ -8111,6 +8128,10 @@ interface NSUrlRequest : NSSecureCoding, NSMutableCopying { [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] [Export ("attribution")] NSURLRequestAttribution Attribution { get; } + + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0)] + [Export ("requiresDNSSECValidation")] + bool RequiresDnsSecValidation { get; } } [BaseType (typeof (NSDictionary))] @@ -8297,6 +8318,10 @@ [New] [Export ("allowsCellularAccess")] [Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] [Export ("attribution", ArgumentSemantic.Assign)] NSURLRequestAttribution Attribution { get; set; } + + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0)] + [Export ("requiresDNSSECValidation")] + bool RequiresDnsSecValidation { get; set; } } [BaseType (typeof (NSObject), Name="NSURLResponse")] @@ -16344,6 +16369,7 @@ interface NSXpcConnection [Export ("invalidationHandler", ArgumentSemantic.Copy)] Action InvalidationHandler { get; set; } + [Advice ("Prefer using 'Activate' for initial activation of a connection")] [Export ("resume")] void Resume (); @@ -16382,6 +16408,14 @@ interface NSXpcConnection [Mac (10, 11)][iOS (9, 0)][Watch (2, 0)][TV (9, 0)] [Export ("synchronousRemoteObjectProxyWithErrorHandler:"), Internal] IntPtr _CreateSynchronousRemoteObjectProxy ([BlockCallback] Action errorHandler); + + [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Export ("activate")] + void Activate (); + + [NoWatch, NoTV, NoiOS, Mac (13,0)] + [Export ("setCodeSigningRequirement:")] + void SetCodeSigningRequirement (string requirement); } interface INSXpcListenerDelegate {} @@ -16413,6 +16447,7 @@ interface NSXpcListener [Export ("endpoint")] NSXpcListenerEndpoint Endpoint { get; } + [Advice ("Prefer using 'Activate' for initial activation of a listener")] [Export ("resume")] void Resume (); @@ -16421,6 +16456,14 @@ interface NSXpcListener [Export ("invalidate")] void Invalidate (); + + [Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)] + [Export ("activate")] + void Activate (); + + [NoWatch, NoTV, NoiOS, Mac (13,0)] + [Export ("setConnectionCodeSigningRequirement:")] + void SetConnectionCodeSigningRequirement (string requirement); } [BaseType (typeof (NSObject), Name = "NSXPCListenerDelegate")] @@ -16996,6 +17039,10 @@ interface NSAttributedStringMarkdownParsingOptions : NSCopying [NullAllowed, Export ("languageCode")] string LanguageCode { get; set; } + + [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0)] + [Export ("appliesSourcePositionAttributes")] + bool AppliesSourcePositionAttributes { get; set; } } [Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] @@ -17179,4 +17226,28 @@ interface NSOrderedCollectionDifference : INSFastEnumeration NativeHandle _InverseDifference (); } #endif + + [Watch (9,0), TV (16,0), Mac (13,0), iOS (16,0)] + [BaseType (typeof(NSObject))] + interface NSAttributedStringMarkdownSourcePosition : NSCopying, NSSecureCoding + { + [Export ("startLine")] + nint StartLine { get; } + + [Export ("startColumn")] + nint StartColumn { get; } + + [Export ("endLine")] + nint EndLine { get; } + + [Export ("endColumn")] + nint EndColumn { get; } + + [Export ("initWithStartLine:startColumn:endLine:endColumn:")] + NativeHandle Constructor (nint startLine, nint startColumn, nint endLine, nint endColumn); + + [Export ("rangeInString:")] + NSRange RangeInString (string @string); + } + } diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.todo index 79e471f01b6c..82a79a795944 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.todo @@ -3,29 +3,4 @@ !missing-selector! NSAttributedString::initWithFormat:options:locale: not bound !missing-selector! NSAttributedString::initWithFormat:options:locale:arguments: not bound !missing-selector! NSMutableAttributedString::appendLocalizedFormat: not bound -!extra-enum-value! Managed value 2 for NSItemProviderRepresentationVisibility.Group is available for the current platform while the value in the native header is not -!deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute -!missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound -!missing-enum-value! NSActivityOptions native value NSActivityTrackingEnabled = 70368744177664 not bound -!missing-enum-value! NSActivityOptions native value NSActivityUserInteractive = 1095233437695 not bound -!missing-field! NSMarkdownSourcePositionAttributeName not bound -!missing-protocol-member! NSURLSessionTaskDelegate::URLSession:didCreateTask: not found -!missing-selector! NSAttributedStringMarkdownParsingOptions::appliesSourcePositionAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAppliesSourcePositionAttributes: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endLine not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::initWithStartLine:startColumn:endLine:endColumn: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::rangeInString: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startLine not bound -!missing-selector! NSInvocation::invokeUsingIMP: not bound -!missing-selector! NSMutableURLRequest::requiresDNSSECValidation not bound -!missing-selector! NSMutableURLRequest::setRequiresDNSSECValidation: not bound -!missing-selector! NSURLComponents::encodedHost not bound -!missing-selector! NSURLComponents::setEncodedHost: not bound -!missing-selector! NSURLSessionConfiguration::requiresDNSSECValidation not bound -!missing-selector! NSURLSessionConfiguration::setRequiresDNSSECValidation: not bound -!missing-selector! NSXPCConnection::activate not bound -!missing-selector! NSXPCListener::activate not bound -!missing-type! NSAttributedStringMarkdownSourcePosition not bound +!extra-enum-value! Managed value 2 for NSItemProviderRepresentationVisibility.Group is available for the current platform while the value in the native header is not \ No newline at end of file diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore index 2b1b0b34b2fc..863a871992db 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore @@ -1377,4 +1377,7 @@ # not exposed to users. # https://github.com/xamarin/xamarin-macios/issues/15577 # !extra-null-allowed! 'ObjCRuntime.NativeHandle Foundation.NSArray::_GetDifferenceFromArray(Foundation.NSArray,Foundation.NSOrderedCollectionDifferenceCalculationOptions,ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #2 -# !extra-null-allowed! 'ObjCRuntime.NativeHandle Foundation.NSOrderedCollectionDifference::_GetDifference(ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #0 \ No newline at end of file +# !extra-null-allowed! 'ObjCRuntime.NativeHandle Foundation.NSOrderedCollectionDifference::_GetDifference(ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #0 + +# we do not expose IMP +!missing-selector! NSInvocation::invokeUsingIMP: not bound \ No newline at end of file diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo index bae7029a490a..63e49adce6ff 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo @@ -3,31 +3,6 @@ !missing-selector! NSAttributedString::initWithFormat:options:locale: not bound !missing-selector! NSAttributedString::initWithFormat:options:locale:arguments: not bound !missing-selector! NSMutableAttributedString::appendLocalizedFormat: not bound -!deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute -!missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound -!missing-enum-value! NSActivityOptions native value NSActivityTrackingEnabled = 70368744177664 not bound -!missing-enum-value! NSActivityOptions native value NSActivityUserInteractive = 1095233437695 not bound -!missing-field! NSMarkdownSourcePositionAttributeName not bound -!missing-protocol-member! NSURLSessionTaskDelegate::URLSession:didCreateTask: not found -!missing-selector! NSAttributedStringMarkdownParsingOptions::appliesSourcePositionAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAppliesSourcePositionAttributes: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endLine not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::initWithStartLine:startColumn:endLine:endColumn: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::rangeInString: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startLine not bound -!missing-selector! NSInvocation::invokeUsingIMP: not bound -!missing-selector! NSMutableURLRequest::requiresDNSSECValidation not bound -!missing-selector! NSMutableURLRequest::setRequiresDNSSECValidation: not bound -!missing-selector! NSURLComponents::encodedHost not bound -!missing-selector! NSURLComponents::setEncodedHost: not bound -!missing-selector! NSURLSessionConfiguration::requiresDNSSECValidation not bound -!missing-selector! NSURLSessionConfiguration::setRequiresDNSSECValidation: not bound -!missing-selector! NSXPCConnection::activate not bound -!missing-selector! NSXPCListener::activate not bound -!missing-type! NSAttributedStringMarkdownSourcePosition not bound !missing-null-allowed! 'Foundation.NSExpression Foundation.NSExpression::FromFunction(Foundation.NSExpressionCallbackHandler,Foundation.NSExpression[])' is missing an [NullAllowed] on parameter #1 !missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound !missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo index 91bf9283fc3a..4ba394f2ed93 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo @@ -3,33 +3,6 @@ !missing-selector! NSAttributedString::initWithFormat:options:locale: not bound !missing-selector! NSAttributedString::initWithFormat:options:locale:arguments: not bound !missing-selector! NSMutableAttributedString::appendLocalizedFormat: not bound -!deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute -!missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound -!missing-enum-value! NSActivityOptions native value NSActivityTrackingEnabled = 70368744177664 not bound -!missing-enum-value! NSActivityOptions native value NSActivityUserInteractive = 1095233437695 not bound -!missing-field! NSMarkdownSourcePositionAttributeName not bound -!missing-protocol-member! NSURLSessionTaskDelegate::URLSession:didCreateTask: not found -!missing-selector! NSAttributedStringMarkdownParsingOptions::appliesSourcePositionAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAppliesSourcePositionAttributes: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endLine not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::initWithStartLine:startColumn:endLine:endColumn: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::rangeInString: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startLine not bound -!missing-selector! NSInvocation::invokeUsingIMP: not bound -!missing-selector! NSMutableURLRequest::requiresDNSSECValidation not bound -!missing-selector! NSMutableURLRequest::setRequiresDNSSECValidation: not bound -!missing-selector! NSURLComponents::encodedHost not bound -!missing-selector! NSURLComponents::setEncodedHost: not bound -!missing-selector! NSURLSessionConfiguration::requiresDNSSECValidation not bound -!missing-selector! NSURLSessionConfiguration::setRequiresDNSSECValidation: not bound -!missing-selector! NSXPCConnection::activate not bound -!missing-selector! NSXPCConnection::setCodeSigningRequirement: not bound -!missing-selector! NSXPCListener::activate not bound -!missing-selector! NSXPCListener::setConnectionCodeSigningRequirement: not bound -!missing-type! NSAttributedStringMarkdownSourcePosition not bound # https://github.com/xamarin/xamarin-macios/issues/15577 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.todo index db30053dd096..5b1e6e7aacca 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.todo @@ -10,32 +10,6 @@ !deprecated-attribute-missing! NSURLConnection::initWithRequest:delegate: missing a [Deprecated] attribute !deprecated-attribute-missing! NSURLConnection::initWithRequest:delegate:startImmediately: missing a [Deprecated] attribute !deprecated-attribute-missing! NSUserDefaults::persistentDomainNames missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute -!missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound -!missing-enum-value! NSActivityOptions native value NSActivityTrackingEnabled = 70368744177664 not bound -!missing-enum-value! NSActivityOptions native value NSActivityUserInteractive = 1095233437695 not bound -!missing-field! NSMarkdownSourcePositionAttributeName not bound -!missing-protocol-member! NSURLSessionTaskDelegate::URLSession:didCreateTask: not found -!missing-selector! NSAttributedStringMarkdownParsingOptions::appliesSourcePositionAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAppliesSourcePositionAttributes: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endLine not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::initWithStartLine:startColumn:endLine:endColumn: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::rangeInString: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startLine not bound -!missing-selector! NSInvocation::invokeUsingIMP: not bound -!missing-selector! NSMutableURLRequest::requiresDNSSECValidation not bound -!missing-selector! NSMutableURLRequest::setRequiresDNSSECValidation: not bound -!missing-selector! NSURLComponents::encodedHost not bound -!missing-selector! NSURLComponents::setEncodedHost: not bound -!missing-selector! NSURLSessionConfiguration::requiresDNSSECValidation not bound -!missing-selector! NSURLSessionConfiguration::setRequiresDNSSECValidation: not bound -!missing-selector! NSXPCConnection::activate not bound -!missing-selector! NSXPCListener::activate not bound -!missing-type! NSAttributedStringMarkdownSourcePosition not bound - # https://github.com/xamarin/xamarin-macios/issues/15577 !missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound diff --git a/tests/xtro-sharpie/common-Foundation.ignore b/tests/xtro-sharpie/common-Foundation.ignore index 8aecf5dc02e9..129fc4423a73 100644 --- a/tests/xtro-sharpie/common-Foundation.ignore +++ b/tests/xtro-sharpie/common-Foundation.ignore @@ -1394,3 +1394,6 @@ # !extra-null-allowed! 'System.IntPtr Foundation.NSArray::_GetDifferenceFromArray(Foundation.NSArray,Foundation.NSOrderedCollectionDifferenceCalculationOptions,ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #2 # !extra-null-allowed! 'System.IntPtr Foundation.NSOrderedCollectionDifference::_GetDifference(ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #0 # !extra-null-allowed! 'System.IntPtr Foundation.NSOrderedSet::_GetDifference(Foundation.NSOrderedSet,Foundation.NSOrderedCollectionDifferenceCalculationOptions,ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #2 + +# we do not expose IMP +!missing-selector! NSInvocation::invokeUsingIMP: not bound \ No newline at end of file diff --git a/tests/xtro-sharpie/iOS-Foundation.todo b/tests/xtro-sharpie/iOS-Foundation.todo index 4320e262c2d8..994b79c98d66 100644 --- a/tests/xtro-sharpie/iOS-Foundation.todo +++ b/tests/xtro-sharpie/iOS-Foundation.todo @@ -1,30 +1,3 @@ -!deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute -!missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound -!missing-enum-value! NSActivityOptions native value NSActivityTrackingEnabled = 70368744177664 not bound -!missing-enum-value! NSActivityOptions native value NSActivityUserInteractive = 1095233437695 not bound -!missing-field! NSMarkdownSourcePositionAttributeName not bound -!missing-protocol-member! NSURLSessionTaskDelegate::URLSession:didCreateTask: not found -!missing-selector! NSAttributedStringMarkdownParsingOptions::appliesSourcePositionAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAppliesSourcePositionAttributes: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endLine not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::initWithStartLine:startColumn:endLine:endColumn: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::rangeInString: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startLine not bound -!missing-selector! NSInvocation::invokeUsingIMP: not bound -!missing-selector! NSMutableURLRequest::requiresDNSSECValidation not bound -!missing-selector! NSMutableURLRequest::setRequiresDNSSECValidation: not bound -!missing-selector! NSURLComponents::encodedHost not bound -!missing-selector! NSURLComponents::setEncodedHost: not bound -!missing-selector! NSURLSessionConfiguration::requiresDNSSECValidation not bound -!missing-selector! NSURLSessionConfiguration::setRequiresDNSSECValidation: not bound -!missing-selector! NSXPCConnection::activate not bound -!missing-selector! NSXPCListener::activate not bound -!missing-type! NSAttributedStringMarkdownSourcePosition not bound - - # https://github.com/xamarin/xamarin-macios/issues/15577 !missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound !missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound diff --git a/tests/xtro-sharpie/macOS-Foundation.todo b/tests/xtro-sharpie/macOS-Foundation.todo index 2c3936131cb3..994b79c98d66 100644 --- a/tests/xtro-sharpie/macOS-Foundation.todo +++ b/tests/xtro-sharpie/macOS-Foundation.todo @@ -1,32 +1,3 @@ -!deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute -!missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound -!missing-enum-value! NSActivityOptions native value NSActivityTrackingEnabled = 70368744177664 not bound -!missing-enum-value! NSActivityOptions native value NSActivityUserInteractive = 1095233437695 not bound -!missing-field! NSMarkdownSourcePositionAttributeName not bound -!missing-protocol-member! NSURLSessionTaskDelegate::URLSession:didCreateTask: not found -!missing-selector! NSAttributedStringMarkdownParsingOptions::appliesSourcePositionAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAppliesSourcePositionAttributes: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endLine not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::initWithStartLine:startColumn:endLine:endColumn: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::rangeInString: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startLine not bound -!missing-selector! NSInvocation::invokeUsingIMP: not bound -!missing-selector! NSMutableURLRequest::requiresDNSSECValidation not bound -!missing-selector! NSMutableURLRequest::setRequiresDNSSECValidation: not bound -!missing-selector! NSURLComponents::encodedHost not bound -!missing-selector! NSURLComponents::setEncodedHost: not bound -!missing-selector! NSURLSessionConfiguration::requiresDNSSECValidation not bound -!missing-selector! NSURLSessionConfiguration::setRequiresDNSSECValidation: not bound -!missing-selector! NSXPCConnection::activate not bound -!missing-selector! NSXPCConnection::setCodeSigningRequirement: not bound -!missing-selector! NSXPCListener::activate not bound -!missing-selector! NSXPCListener::setConnectionCodeSigningRequirement: not bound -!missing-type! NSAttributedStringMarkdownSourcePosition not bound - - # https://github.com/xamarin/xamarin-macios/issues/15577 !missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound !missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound diff --git a/tests/xtro-sharpie/tvOS-Foundation.todo b/tests/xtro-sharpie/tvOS-Foundation.todo index 4320e262c2d8..994b79c98d66 100644 --- a/tests/xtro-sharpie/tvOS-Foundation.todo +++ b/tests/xtro-sharpie/tvOS-Foundation.todo @@ -1,30 +1,3 @@ -!deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute -!missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound -!missing-enum-value! NSActivityOptions native value NSActivityTrackingEnabled = 70368744177664 not bound -!missing-enum-value! NSActivityOptions native value NSActivityUserInteractive = 1095233437695 not bound -!missing-field! NSMarkdownSourcePositionAttributeName not bound -!missing-protocol-member! NSURLSessionTaskDelegate::URLSession:didCreateTask: not found -!missing-selector! NSAttributedStringMarkdownParsingOptions::appliesSourcePositionAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAppliesSourcePositionAttributes: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endLine not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::initWithStartLine:startColumn:endLine:endColumn: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::rangeInString: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startLine not bound -!missing-selector! NSInvocation::invokeUsingIMP: not bound -!missing-selector! NSMutableURLRequest::requiresDNSSECValidation not bound -!missing-selector! NSMutableURLRequest::setRequiresDNSSECValidation: not bound -!missing-selector! NSURLComponents::encodedHost not bound -!missing-selector! NSURLComponents::setEncodedHost: not bound -!missing-selector! NSURLSessionConfiguration::requiresDNSSECValidation not bound -!missing-selector! NSURLSessionConfiguration::setRequiresDNSSECValidation: not bound -!missing-selector! NSXPCConnection::activate not bound -!missing-selector! NSXPCListener::activate not bound -!missing-type! NSAttributedStringMarkdownSourcePosition not bound - - # https://github.com/xamarin/xamarin-macios/issues/15577 !missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound !missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound diff --git a/tests/xtro-sharpie/watchOS-Foundation.todo b/tests/xtro-sharpie/watchOS-Foundation.todo index 4320e262c2d8..994b79c98d66 100644 --- a/tests/xtro-sharpie/watchOS-Foundation.todo +++ b/tests/xtro-sharpie/watchOS-Foundation.todo @@ -1,30 +1,3 @@ -!deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute -!missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound -!missing-enum-value! NSActivityOptions native value NSActivityTrackingEnabled = 70368744177664 not bound -!missing-enum-value! NSActivityOptions native value NSActivityUserInteractive = 1095233437695 not bound -!missing-field! NSMarkdownSourcePositionAttributeName not bound -!missing-protocol-member! NSURLSessionTaskDelegate::URLSession:didCreateTask: not found -!missing-selector! NSAttributedStringMarkdownParsingOptions::appliesSourcePositionAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAppliesSourcePositionAttributes: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endLine not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::initWithStartLine:startColumn:endLine:endColumn: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::rangeInString: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startLine not bound -!missing-selector! NSInvocation::invokeUsingIMP: not bound -!missing-selector! NSMutableURLRequest::requiresDNSSECValidation not bound -!missing-selector! NSMutableURLRequest::setRequiresDNSSECValidation: not bound -!missing-selector! NSURLComponents::encodedHost not bound -!missing-selector! NSURLComponents::setEncodedHost: not bound -!missing-selector! NSURLSessionConfiguration::requiresDNSSECValidation not bound -!missing-selector! NSURLSessionConfiguration::setRequiresDNSSECValidation: not bound -!missing-selector! NSXPCConnection::activate not bound -!missing-selector! NSXPCListener::activate not bound -!missing-type! NSAttributedStringMarkdownSourcePosition not bound - - # https://github.com/xamarin/xamarin-macios/issues/15577 !missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound !missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound From ba8b81cb6aa205d5e06a205f4ad5ba395e3f67ea Mon Sep 17 00:00:00 2001 From: Chris Hamons Date: Wed, 27 Jul 2022 16:45:53 -0500 Subject: [PATCH 09/12] Review changes --- src/foundation.cs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/foundation.cs b/src/foundation.cs index 54fc54b0fb78..3aa2ceb12ab4 100644 --- a/src/foundation.cs +++ b/src/foundation.cs @@ -8129,9 +8129,6 @@ interface NSUrlRequest : NSSecureCoding, NSMutableCopying { [Export ("attribution")] NSURLRequestAttribution Attribution { get; } - [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0)] - [Export ("requiresDNSSECValidation")] - bool RequiresDnsSecValidation { get; } } [BaseType (typeof (NSDictionary))] @@ -8319,9 +8316,10 @@ [New] [Export ("allowsCellularAccess")] [Export ("attribution", ArgumentSemantic.Assign)] NSURLRequestAttribution Attribution { get; set; } - [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0)] - [Export ("requiresDNSSECValidation")] - bool RequiresDnsSecValidation { get; set; } + // https://github.com/xamarin/maccore/issues/2608 - https://feedbackassistant.apple.com/feedback/10897552 + // [Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0)] + // [Export ("requiresDNSSECValidation")] + // bool RequiresDnsSecValidation { get; set; } } [BaseType (typeof (NSObject), Name="NSURLResponse")] @@ -16369,7 +16367,7 @@ interface NSXpcConnection [Export ("invalidationHandler", ArgumentSemantic.Copy)] Action InvalidationHandler { get; set; } - [Advice ("Prefer using 'Activate' for initial activation of a connection")] + [Advice ("Prefer using 'Activate' for initial activation of a connection.")] [Export ("resume")] void Resume (); @@ -16447,7 +16445,7 @@ interface NSXpcListener [Export ("endpoint")] NSXpcListenerEndpoint Endpoint { get; } - [Advice ("Prefer using 'Activate' for initial activation of a listener")] + [Advice ("Prefer using 'Activate' for initial activation of a listener.")] [Export ("resume")] void Resume (); From 3f28e97dbe49d88945ce59de5eb6a85f2bc69f9b Mon Sep 17 00:00:00 2001 From: Chris Hamons Date: Thu, 28 Jul 2022 09:46:36 -0500 Subject: [PATCH 10/12] Update xtro for disabled due to https://github.com/xamarin/maccore/issues/2608 --- .../api-annotations-dotnet/common-Foundation.ignore | 6 +++++- tests/xtro-sharpie/common-Foundation.ignore | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore index 863a871992db..c7f193fb4bf0 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore @@ -1380,4 +1380,8 @@ # !extra-null-allowed! 'ObjCRuntime.NativeHandle Foundation.NSOrderedCollectionDifference::_GetDifference(ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #0 # we do not expose IMP -!missing-selector! NSInvocation::invokeUsingIMP: not bound \ No newline at end of file +!missing-selector! NSInvocation::invokeUsingIMP: not bound + +# https://github.com/xamarin/maccore/issues/2608 - https://feedbackassistant.apple.com/feedback/10897552 +!missing-selector! NSMutableURLRequest::requiresDNSSECValidation not bound +!missing-selector! NSMutableURLRequest::setRequiresDNSSECValidation: not bound diff --git a/tests/xtro-sharpie/common-Foundation.ignore b/tests/xtro-sharpie/common-Foundation.ignore index 129fc4423a73..d0db9d777c74 100644 --- a/tests/xtro-sharpie/common-Foundation.ignore +++ b/tests/xtro-sharpie/common-Foundation.ignore @@ -1396,4 +1396,8 @@ # !extra-null-allowed! 'System.IntPtr Foundation.NSOrderedSet::_GetDifference(Foundation.NSOrderedSet,Foundation.NSOrderedCollectionDifferenceCalculationOptions,ObjCRuntime.BlockLiteral&)' has a extraneous [NullAllowed] on parameter #2 # we do not expose IMP -!missing-selector! NSInvocation::invokeUsingIMP: not bound \ No newline at end of file +!missing-selector! NSInvocation::invokeUsingIMP: not bound + +# https://github.com/xamarin/maccore/issues/2608 - https://feedbackassistant.apple.com/feedback/10897552 +!missing-selector! NSMutableURLRequest::requiresDNSSECValidation not bound +!missing-selector! NSMutableURLRequest::setRequiresDNSSECValidation: not bound From 0cb5a30d478325cfbf7a2d9e4aafa64ef20d7d17 Mon Sep 17 00:00:00 2001 From: Chris Hamons Date: Thu, 28 Jul 2022 10:28:24 -0500 Subject: [PATCH 11/12] Fix tests --- src/foundation.cs | 3 +++ tests/cecil-tests/AttributeTest.cs | 1 + 2 files changed, 4 insertions(+) diff --git a/src/foundation.cs b/src/foundation.cs index 3aa2ceb12ab4..91b1f467f3f2 100644 --- a/src/foundation.cs +++ b/src/foundation.cs @@ -11275,6 +11275,7 @@ partial interface NSValue : NSSecureCoding, NSCopying { NSValue FromCGPoint (CGPoint point); #if MONOMAC + [Mac (10,0)] [Export ("rectValue")] #else [MacCatalyst (15,0)] @@ -11283,6 +11284,7 @@ partial interface NSValue : NSSecureCoding, NSCopying { CGRect CGRectValue { get; } #if MONOMAC + [Mac (10,0)] [Export ("sizeValue")] #else [MacCatalyst (15,0)] @@ -11291,6 +11293,7 @@ partial interface NSValue : NSSecureCoding, NSCopying { CGSize CGSizeValue { get; } #if MONOMAC + [Mac (10,0)] [Export ("pointValue")] #else [MacCatalyst (15,0)] diff --git a/tests/cecil-tests/AttributeTest.cs b/tests/cecil-tests/AttributeTest.cs index 48a4e4275b13..9f9e3d58bf47 100644 --- a/tests/cecil-tests/AttributeTest.cs +++ b/tests/cecil-tests/AttributeTest.cs @@ -301,6 +301,7 @@ static bool IgnoreElementsThatDoNotExistInThatAssembly (string member) case "AVFoundation.AVAssetDownloadDelegate.DidFinishCollectingMetrics": case "AVFoundation.AVAssetDownloadDelegate.TaskIsWaitingForConnectivity": case "AVFoundation.AVAssetDownloadDelegate.WillBeginDelayedRequest": + case "AVFoundation.AVAssetDownloadDelegate.DidCreateTask": case "ARKit.ARQuickLookPreviewItem.get_PreviewItemTitle": case "ARKit.ARQuickLookPreviewItem.get_PreviewItemUrl": case "Intents.INPerson.get_AlternativeSpeakableMatches": From 6467a1923274bdcc2c66bd90f603498c966aaa25 Mon Sep 17 00:00:00 2001 From: Chris Hamons Date: Fri, 29 Jul 2022 15:44:09 -0500 Subject: [PATCH 12/12] Move issue'd items to todo from ignore so they don't get jumbled --- .../common-Foundation.ignore | 39 ++++++++++ .../iOS-Foundation.todo | 65 ---------------- .../macOS-Foundation.todo | 67 ---------------- .../tvOS-Foundation.todo | 78 +------------------ tests/xtro-sharpie/common-Foundation.ignore | 39 ++++++++++ tests/xtro-sharpie/iOS-Foundation.todo | 65 ---------------- tests/xtro-sharpie/macOS-Foundation.todo | 64 --------------- tests/xtro-sharpie/tvOS-Foundation.todo | 66 ---------------- tests/xtro-sharpie/watchOS-Foundation.ignore | 5 +- tests/xtro-sharpie/watchOS-Foundation.todo | 78 ------------------- 10 files changed, 80 insertions(+), 486 deletions(-) delete mode 100644 tests/xtro-sharpie/iOS-Foundation.todo delete mode 100644 tests/xtro-sharpie/macOS-Foundation.todo delete mode 100644 tests/xtro-sharpie/tvOS-Foundation.todo delete mode 100644 tests/xtro-sharpie/watchOS-Foundation.todo diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore index c7f193fb4bf0..661321ea4841 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-Foundation.ignore @@ -1385,3 +1385,42 @@ # https://github.com/xamarin/maccore/issues/2608 - https://feedbackassistant.apple.com/feedback/10897552 !missing-selector! NSMutableURLRequest::requiresDNSSECValidation not bound !missing-selector! NSMutableURLRequest::setRequiresDNSSECValidation: not bound + +# Variable argument, and can be done in C# +!missing-selector! +NSString::localizedStringWithValidatedFormat:validFormatSpecifiers:error: not bound +!missing-selector! +NSString::stringWithValidatedFormat:validFormatSpecifiers:error: not bound +!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:arguments:error: not bound +!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:error: not bound +!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:locale:arguments:error: not bound +!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:locale:error: not bound + +# https://github.com/xamarin/xamarin-macios/issues/15577 +!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound +!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound +!missing-null-allowed! 'Foundation.NSExpression Foundation.NSExpression::FromFunction(Foundation.NSExpressionCallbackHandler,Foundation.NSExpression[])' is missing an [NullAllowed] on parameter #1 +!missing-selector! NSArray::arrayByApplyingDifference: not bound +!missing-selector! NSArray::differenceFromArray: not bound +!missing-selector! NSArray::differenceFromArray:withOptions: not bound +!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound +!missing-selector! NSMutableArray::applyDifference: not bound +!missing-selector! NSMutableOrderedSet::applyDifference: not bound +!missing-selector! NSOrderedCollectionChange::associatedIndex not bound +!missing-selector! NSOrderedCollectionChange::changeType not bound +!missing-selector! NSOrderedCollectionChange::index not bound +!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound +!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound +!missing-selector! NSOrderedCollectionChange::object not bound +!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound +!missing-selector! NSOrderedCollectionDifference::hasChanges not bound +!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound +!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound +!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound +!missing-selector! NSOrderedCollectionDifference::insertions not bound +!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound +!missing-selector! NSOrderedCollectionDifference::removals not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound +!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound +!missing-type! NSOrderedCollectionChange not bound +!missing-type! NSOrderedCollectionDifference not bound \ No newline at end of file diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo index 5b2ce00d2514..8324968d65d9 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo @@ -3,68 +3,3 @@ !missing-selector! NSAttributedString::initWithFormat:options:locale: not bound !missing-selector! NSAttributedString::initWithFormat:options:locale:arguments: not bound !missing-selector! NSMutableAttributedString::appendLocalizedFormat: not bound -!missing-null-allowed! 'Foundation.NSExpression Foundation.NSExpression::FromFunction(Foundation.NSExpressionCallbackHandler,Foundation.NSExpression[])' is missing an [NullAllowed] on parameter #1 -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound -!missing-selector! NSArray::arrayByApplyingDifference: not bound -!missing-selector! NSArray::differenceFromArray: not bound -!missing-selector! NSArray::differenceFromArray:withOptions: not bound -!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSMutableArray::applyDifference: not bound -!missing-selector! NSMutableOrderedSet::applyDifference: not bound -!missing-selector! NSOrderedCollectionChange::associatedIndex not bound -!missing-selector! NSOrderedCollectionChange::changeType not bound -!missing-selector! NSOrderedCollectionChange::index not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound -!missing-selector! NSOrderedCollectionChange::object not bound -!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound -!missing-selector! NSOrderedCollectionDifference::hasChanges not bound -!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound -!missing-selector! NSOrderedCollectionDifference::insertions not bound -!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound -!missing-selector! NSOrderedCollectionDifference::removals not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound -!missing-type! NSOrderedCollectionChange not bound -!missing-type! NSOrderedCollectionDifference not bound -!missing-type! NSPresentationIntent not bound -!extra-enum-value! Managed value 1024 for NSUrlBookmarkResolutionOptions.WithSecurityScope is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 2 for NSItemProviderRepresentationVisibility.Group is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 2048 for NSUrlBookmarkCreationOptions.WithSecurityScope is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 4096 for NSUrlBookmarkCreationOptions.SecurityScopeAllowOnlyReadAccess is available for the current platform while the value in the native header is not -!deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute -!missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound -!missing-enum-value! NSActivityOptions native value NSActivityTrackingEnabled = 70368744177664 not bound -!missing-enum-value! NSActivityOptions native value NSActivityUserInteractive = 1095233437695 not bound -!missing-field! NSMarkdownSourcePositionAttributeName not bound -!missing-protocol-member! NSURLSessionTaskDelegate::URLSession:didCreateTask: not found -!missing-selector! NSAttributedStringMarkdownParsingOptions::appliesSourcePositionAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAppliesSourcePositionAttributes: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endLine not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::initWithStartLine:startColumn:endLine:endColumn: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::rangeInString: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startLine not bound -!missing-selector! NSInvocation::invokeUsingIMP: not bound -!missing-selector! NSMutableURLRequest::requiresDNSSECValidation not bound -!missing-selector! NSMutableURLRequest::setRequiresDNSSECValidation: not bound -!missing-selector! NSURLComponents::encodedHost not bound -!missing-selector! NSURLComponents::setEncodedHost: not bound -!missing-selector! NSURLSessionConfiguration::requiresDNSSECValidation not bound -!missing-selector! NSURLSessionConfiguration::setRequiresDNSSECValidation: not bound -!missing-selector! NSXPCConnection::activate not bound -!missing-selector! NSXPCListener::activate not bound -!missing-type! NSAttributedStringMarkdownSourcePosition not bound -!missing-selector! +NSString::localizedStringWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! +NSString::stringWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:arguments:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:locale:arguments:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:locale:error: not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo index 7c6c210405e1..8324968d65d9 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo @@ -3,70 +3,3 @@ !missing-selector! NSAttributedString::initWithFormat:options:locale: not bound !missing-selector! NSAttributedString::initWithFormat:options:locale:arguments: not bound !missing-selector! NSMutableAttributedString::appendLocalizedFormat: not bound - - -# https://github.com/xamarin/xamarin-macios/issues/15577 -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound -!missing-selector! NSArray::arrayByApplyingDifference: not bound -!missing-selector! NSArray::differenceFromArray: not bound -!missing-selector! NSArray::differenceFromArray:withOptions: not bound -!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSMutableArray::applyDifference: not bound -!missing-selector! NSMutableOrderedSet::applyDifference: not bound -!missing-selector! NSOrderedCollectionChange::associatedIndex not bound -!missing-selector! NSOrderedCollectionChange::changeType not bound -!missing-selector! NSOrderedCollectionChange::index not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound -!missing-selector! NSOrderedCollectionChange::object not bound -!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound -!missing-selector! NSOrderedCollectionDifference::hasChanges not bound -!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound -!missing-selector! NSOrderedCollectionDifference::insertions not bound -!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound -!missing-selector! NSOrderedCollectionDifference::removals not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound -!missing-type! NSOrderedCollectionChange not bound -!missing-type! NSOrderedCollectionDifference not bound -!missing-null-allowed! 'Foundation.NSExpression Foundation.NSExpression::FromFunction(Foundation.NSExpressionCallbackHandler,Foundation.NSExpression[])' is missing an [NullAllowed] on parameter #1 -!missing-type! NSPresentationIntent not bound -!extra-enum-value! Managed value 1 for NSItemProviderRepresentationVisibility.Team is available for the current platform while the value in the native header is not -!deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute -!missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound -!missing-enum-value! NSActivityOptions native value NSActivityTrackingEnabled = 70368744177664 not bound -!missing-enum-value! NSActivityOptions native value NSActivityUserInteractive = 1095233437695 not bound -!missing-field! NSMarkdownSourcePositionAttributeName not bound -!missing-protocol-member! NSURLSessionTaskDelegate::URLSession:didCreateTask: not found -!missing-selector! NSAttributedStringMarkdownParsingOptions::appliesSourcePositionAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAppliesSourcePositionAttributes: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endLine not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::initWithStartLine:startColumn:endLine:endColumn: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::rangeInString: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startLine not bound -!missing-selector! NSInvocation::invokeUsingIMP: not bound -!missing-selector! NSMutableURLRequest::requiresDNSSECValidation not bound -!missing-selector! NSMutableURLRequest::setRequiresDNSSECValidation: not bound -!missing-selector! NSURLComponents::encodedHost not bound -!missing-selector! NSURLComponents::setEncodedHost: not bound -!missing-selector! NSURLSessionConfiguration::requiresDNSSECValidation not bound -!missing-selector! NSURLSessionConfiguration::setRequiresDNSSECValidation: not bound -!missing-selector! NSXPCConnection::activate not bound -!missing-selector! NSXPCConnection::setCodeSigningRequirement: not bound -!missing-selector! NSXPCListener::activate not bound -!missing-selector! NSXPCListener::setConnectionCodeSigningRequirement: not bound -!missing-type! NSAttributedStringMarkdownSourcePosition not bound -!missing-selector! +NSString::localizedStringWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! +NSString::stringWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:arguments:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:locale:arguments:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:locale:error: not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.todo index e04ea71a0714..be212b0f07ab 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.todo @@ -9,80 +9,4 @@ !deprecated-attribute-missing! NSProcessInfo::operatingSystemName missing a [Deprecated] attribute !deprecated-attribute-missing! NSURLConnection::initWithRequest:delegate: missing a [Deprecated] attribute !deprecated-attribute-missing! NSURLConnection::initWithRequest:delegate:startImmediately: missing a [Deprecated] attribute -!deprecated-attribute-missing! NSUserDefaults::persistentDomainNames missing a [Deprecated] attribute - -# https://github.com/xamarin/xamarin-macios/issues/15577 -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound -!missing-selector! NSArray::arrayByApplyingDifference: not bound -!missing-selector! NSArray::differenceFromArray: not bound -!missing-selector! NSArray::differenceFromArray:withOptions: not bound -!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSMutableArray::applyDifference: not bound -!missing-selector! NSMutableOrderedSet::applyDifference: not bound -!missing-selector! NSOrderedCollectionChange::associatedIndex not bound -!missing-selector! NSOrderedCollectionChange::changeType not bound -!missing-selector! NSOrderedCollectionChange::index not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound -!missing-selector! NSOrderedCollectionChange::object not bound -!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound -!missing-selector! NSOrderedCollectionDifference::hasChanges not bound -!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound -!missing-selector! NSOrderedCollectionDifference::insertions not bound -!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound -!missing-selector! NSOrderedCollectionDifference::removals not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound -!missing-type! NSOrderedCollectionChange not bound -!missing-type! NSOrderedCollectionDifference not bound -!missing-null-allowed! 'Foundation.NSExpression Foundation.NSExpression::FromFunction(Foundation.NSExpressionCallbackHandler,Foundation.NSExpression[])' is missing an [NullAllowed] on parameter #1 -!missing-type! NSPresentationIntent not bound -!extra-enum-value! Managed value 102 for NSSearchPathDirectory.TrashDirectory is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 1024 for NSUrlBookmarkResolutionOptions.WithSecurityScope is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 2 for NSItemProviderRepresentationVisibility.Group is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 2048 for NSUrlBookmarkCreationOptions.WithSecurityScope is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 4096 for NSUrlBookmarkCreationOptions.SecurityScopeAllowOnlyReadAccess is available for the current platform while the value in the native header is not -!deprecated-attribute-missing! NSDateComponents::setWeek: missing a [Deprecated] attribute -!deprecated-attribute-missing! NSDateComponents::week missing a [Deprecated] attribute -!deprecated-attribute-missing! NSNetService::resolve missing a [Deprecated] attribute -!deprecated-attribute-missing! NSProcessInfo::operatingSystem missing a [Deprecated] attribute -!deprecated-attribute-missing! NSProcessInfo::operatingSystemName missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLConnection::initWithRequest:delegate: missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLConnection::initWithRequest:delegate:startImmediately: missing a [Deprecated] attribute -!deprecated-attribute-missing! NSUserDefaults::persistentDomainNames missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute -!missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound -!missing-enum-value! NSActivityOptions native value NSActivityTrackingEnabled = 70368744177664 not bound -!missing-enum-value! NSActivityOptions native value NSActivityUserInteractive = 1095233437695 not bound -!missing-field! NSMarkdownSourcePositionAttributeName not bound -!missing-protocol-member! NSURLSessionTaskDelegate::URLSession:didCreateTask: not found -!missing-selector! NSAttributedStringMarkdownParsingOptions::appliesSourcePositionAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAppliesSourcePositionAttributes: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endLine not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::initWithStartLine:startColumn:endLine:endColumn: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::rangeInString: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startLine not bound -!missing-selector! NSInvocation::invokeUsingIMP: not bound -!missing-selector! NSMutableURLRequest::requiresDNSSECValidation not bound -!missing-selector! NSMutableURLRequest::setRequiresDNSSECValidation: not bound -!missing-selector! NSURLComponents::encodedHost not bound -!missing-selector! NSURLComponents::setEncodedHost: not bound -!missing-selector! NSURLSessionConfiguration::requiresDNSSECValidation not bound -!missing-selector! NSURLSessionConfiguration::setRequiresDNSSECValidation: not bound -!missing-selector! NSXPCConnection::activate not bound -!missing-selector! NSXPCListener::activate not bound -!missing-type! NSAttributedStringMarkdownSourcePosition not bound -!missing-selector! +NSString::localizedStringWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! +NSString::stringWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:arguments:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:locale:arguments:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:locale:error: not bound +!deprecated-attribute-missing! NSUserDefaults::persistentDomainNames missing a [Deprecated] attribute \ No newline at end of file diff --git a/tests/xtro-sharpie/common-Foundation.ignore b/tests/xtro-sharpie/common-Foundation.ignore index d0db9d777c74..924c020045d6 100644 --- a/tests/xtro-sharpie/common-Foundation.ignore +++ b/tests/xtro-sharpie/common-Foundation.ignore @@ -1401,3 +1401,42 @@ # https://github.com/xamarin/maccore/issues/2608 - https://feedbackassistant.apple.com/feedback/10897552 !missing-selector! NSMutableURLRequest::requiresDNSSECValidation not bound !missing-selector! NSMutableURLRequest::setRequiresDNSSECValidation: not bound + +# Variable argument, and can be done in C# +!missing-selector! +NSString::localizedStringWithValidatedFormat:validFormatSpecifiers:error: not bound +!missing-selector! +NSString::stringWithValidatedFormat:validFormatSpecifiers:error: not bound +!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:arguments:error: not bound +!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:error: not bound +!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:locale:arguments:error: not bound +!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:locale:error: not bound + +# https://github.com/xamarin/xamarin-macios/issues/15577 +!missing-null-allowed! 'Foundation.NSExpression Foundation.NSExpression::FromFunction(Foundation.NSExpressionCallbackHandler,Foundation.NSExpression[])' is missing an [NullAllowed] on parameter #1 +!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound +!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound +!missing-selector! NSArray::arrayByApplyingDifference: not bound +!missing-selector! NSArray::differenceFromArray: not bound +!missing-selector! NSArray::differenceFromArray:withOptions: not bound +!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound +!missing-selector! NSMutableArray::applyDifference: not bound +!missing-selector! NSMutableOrderedSet::applyDifference: not bound +!missing-selector! NSOrderedCollectionChange::associatedIndex not bound +!missing-selector! NSOrderedCollectionChange::changeType not bound +!missing-selector! NSOrderedCollectionChange::index not bound +!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound +!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound +!missing-selector! NSOrderedCollectionChange::object not bound +!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound +!missing-selector! NSOrderedCollectionDifference::hasChanges not bound +!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound +!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound +!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound +!missing-selector! NSOrderedCollectionDifference::insertions not bound +!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound +!missing-selector! NSOrderedCollectionDifference::removals not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound +!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound +!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound +!missing-type! NSOrderedCollectionChange not bound +!missing-type! NSOrderedCollectionDifference not bound \ No newline at end of file diff --git a/tests/xtro-sharpie/iOS-Foundation.todo b/tests/xtro-sharpie/iOS-Foundation.todo deleted file mode 100644 index 3a82f90de2d7..000000000000 --- a/tests/xtro-sharpie/iOS-Foundation.todo +++ /dev/null @@ -1,65 +0,0 @@ -# https://github.com/xamarin/xamarin-macios/issues/15577 -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound -!missing-selector! NSArray::arrayByApplyingDifference: not bound -!missing-selector! NSArray::differenceFromArray: not bound -!missing-selector! NSArray::differenceFromArray:withOptions: not bound -!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSMutableArray::applyDifference: not bound -!missing-selector! NSMutableOrderedSet::applyDifference: not bound -!missing-selector! NSOrderedCollectionChange::associatedIndex not bound -!missing-selector! NSOrderedCollectionChange::changeType not bound -!missing-selector! NSOrderedCollectionChange::index not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound -!missing-selector! NSOrderedCollectionChange::object not bound -!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound -!missing-selector! NSOrderedCollectionDifference::hasChanges not bound -!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound -!missing-selector! NSOrderedCollectionDifference::insertions not bound -!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound -!missing-selector! NSOrderedCollectionDifference::removals not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound -!missing-type! NSOrderedCollectionChange not bound -!missing-type! NSOrderedCollectionDifference not bound -!missing-type! NSPresentationIntent not bound -!extra-enum-value! Managed value 1024 for NSUrlBookmarkResolutionOptions.WithSecurityScope is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 2 for NSItemProviderRepresentationVisibility.Group is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 2048 for NSUrlBookmarkCreationOptions.WithSecurityScope is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 4096 for NSUrlBookmarkCreationOptions.SecurityScopeAllowOnlyReadAccess is available for the current platform while the value in the native header is not -!deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute -!missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound -!missing-enum-value! NSActivityOptions native value NSActivityTrackingEnabled = 70368744177664 not bound -!missing-enum-value! NSActivityOptions native value NSActivityUserInteractive = 1095233437695 not bound -!missing-field! NSMarkdownSourcePositionAttributeName not bound -!missing-protocol-member! NSURLSessionTaskDelegate::URLSession:didCreateTask: not found -!missing-selector! NSAttributedStringMarkdownParsingOptions::appliesSourcePositionAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAppliesSourcePositionAttributes: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endLine not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::initWithStartLine:startColumn:endLine:endColumn: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::rangeInString: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startLine not bound -!missing-selector! NSInvocation::invokeUsingIMP: not bound -!missing-selector! NSMutableURLRequest::requiresDNSSECValidation not bound -!missing-selector! NSMutableURLRequest::setRequiresDNSSECValidation: not bound -!missing-selector! NSURLComponents::encodedHost not bound -!missing-selector! NSURLComponents::setEncodedHost: not bound -!missing-selector! NSURLSessionConfiguration::requiresDNSSECValidation not bound -!missing-selector! NSURLSessionConfiguration::setRequiresDNSSECValidation: not bound -!missing-selector! NSXPCConnection::activate not bound -!missing-selector! NSXPCListener::activate not bound -!missing-type! NSAttributedStringMarkdownSourcePosition not bound -!missing-selector! +NSString::localizedStringWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! +NSString::stringWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:arguments:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:locale:arguments:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:locale:error: not bound diff --git a/tests/xtro-sharpie/macOS-Foundation.todo b/tests/xtro-sharpie/macOS-Foundation.todo deleted file mode 100644 index febc71286385..000000000000 --- a/tests/xtro-sharpie/macOS-Foundation.todo +++ /dev/null @@ -1,64 +0,0 @@ -# https://github.com/xamarin/xamarin-macios/issues/15577 -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound -!missing-selector! NSArray::arrayByApplyingDifference: not bound -!missing-selector! NSArray::differenceFromArray: not bound -!missing-selector! NSArray::differenceFromArray:withOptions: not bound -!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSMutableArray::applyDifference: not bound -!missing-selector! NSMutableOrderedSet::applyDifference: not bound -!missing-selector! NSOrderedCollectionChange::associatedIndex not bound -!missing-selector! NSOrderedCollectionChange::changeType not bound -!missing-selector! NSOrderedCollectionChange::index not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound -!missing-selector! NSOrderedCollectionChange::object not bound -!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound -!missing-selector! NSOrderedCollectionDifference::hasChanges not bound -!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound -!missing-selector! NSOrderedCollectionDifference::insertions not bound -!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound -!missing-selector! NSOrderedCollectionDifference::removals not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound -!missing-type! NSOrderedCollectionChange not bound -!missing-type! NSOrderedCollectionDifference not bound -!missing-type! NSPresentationIntent not bound -!extra-enum-value! Managed value 1 for NSItemProviderRepresentationVisibility.Team is available for the current platform while the value in the native header is not -!deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute -!missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound -!missing-enum-value! NSActivityOptions native value NSActivityTrackingEnabled = 70368744177664 not bound -!missing-enum-value! NSActivityOptions native value NSActivityUserInteractive = 1095233437695 not bound -!missing-field! NSMarkdownSourcePositionAttributeName not bound -!missing-protocol-member! NSURLSessionTaskDelegate::URLSession:didCreateTask: not found -!missing-selector! NSAttributedStringMarkdownParsingOptions::appliesSourcePositionAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAppliesSourcePositionAttributes: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endLine not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::initWithStartLine:startColumn:endLine:endColumn: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::rangeInString: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startLine not bound -!missing-selector! NSInvocation::invokeUsingIMP: not bound -!missing-selector! NSMutableURLRequest::requiresDNSSECValidation not bound -!missing-selector! NSMutableURLRequest::setRequiresDNSSECValidation: not bound -!missing-selector! NSURLComponents::encodedHost not bound -!missing-selector! NSURLComponents::setEncodedHost: not bound -!missing-selector! NSURLSessionConfiguration::requiresDNSSECValidation not bound -!missing-selector! NSURLSessionConfiguration::setRequiresDNSSECValidation: not bound -!missing-selector! NSXPCConnection::activate not bound -!missing-selector! NSXPCConnection::setCodeSigningRequirement: not bound -!missing-selector! NSXPCListener::activate not bound -!missing-selector! NSXPCListener::setConnectionCodeSigningRequirement: not bound -!missing-type! NSAttributedStringMarkdownSourcePosition not bound -!missing-selector! +NSString::localizedStringWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! +NSString::stringWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:arguments:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:locale:arguments:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:locale:error: not bound diff --git a/tests/xtro-sharpie/tvOS-Foundation.todo b/tests/xtro-sharpie/tvOS-Foundation.todo deleted file mode 100644 index 071ac210a624..000000000000 --- a/tests/xtro-sharpie/tvOS-Foundation.todo +++ /dev/null @@ -1,66 +0,0 @@ -# https://github.com/xamarin/xamarin-macios/issues/15577 -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound -!missing-selector! NSArray::arrayByApplyingDifference: not bound -!missing-selector! NSArray::differenceFromArray: not bound -!missing-selector! NSArray::differenceFromArray:withOptions: not bound -!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSMutableArray::applyDifference: not bound -!missing-selector! NSMutableOrderedSet::applyDifference: not bound -!missing-selector! NSOrderedCollectionChange::associatedIndex not bound -!missing-selector! NSOrderedCollectionChange::changeType not bound -!missing-selector! NSOrderedCollectionChange::index not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound -!missing-selector! NSOrderedCollectionChange::object not bound -!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound -!missing-selector! NSOrderedCollectionDifference::hasChanges not bound -!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound -!missing-selector! NSOrderedCollectionDifference::insertions not bound -!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound -!missing-selector! NSOrderedCollectionDifference::removals not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound -!missing-type! NSOrderedCollectionChange not bound -!missing-type! NSOrderedCollectionDifference not bound -!missing-type! NSPresentationIntent not bound -!extra-enum-value! Managed value 102 for NSSearchPathDirectory.TrashDirectory is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 1024 for NSUrlBookmarkResolutionOptions.WithSecurityScope is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 2 for NSItemProviderRepresentationVisibility.Group is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 2048 for NSUrlBookmarkCreationOptions.WithSecurityScope is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 4096 for NSUrlBookmarkCreationOptions.SecurityScopeAllowOnlyReadAccess is available for the current platform while the value in the native header is not -!deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute -!missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound -!missing-enum-value! NSActivityOptions native value NSActivityTrackingEnabled = 70368744177664 not bound -!missing-enum-value! NSActivityOptions native value NSActivityUserInteractive = 1095233437695 not bound -!missing-field! NSMarkdownSourcePositionAttributeName not bound -!missing-protocol-member! NSURLSessionTaskDelegate::URLSession:didCreateTask: not found -!missing-selector! NSAttributedStringMarkdownParsingOptions::appliesSourcePositionAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAppliesSourcePositionAttributes: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endLine not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::initWithStartLine:startColumn:endLine:endColumn: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::rangeInString: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startLine not bound -!missing-selector! NSInvocation::invokeUsingIMP: not bound -!missing-selector! NSMutableURLRequest::requiresDNSSECValidation not bound -!missing-selector! NSMutableURLRequest::setRequiresDNSSECValidation: not bound -!missing-selector! NSURLComponents::encodedHost not bound -!missing-selector! NSURLComponents::setEncodedHost: not bound -!missing-selector! NSURLSessionConfiguration::requiresDNSSECValidation not bound -!missing-selector! NSURLSessionConfiguration::setRequiresDNSSECValidation: not bound -!missing-selector! NSXPCConnection::activate not bound -!missing-selector! NSXPCListener::activate not bound -!missing-type! NSAttributedStringMarkdownSourcePosition not bound -!missing-selector! +NSString::localizedStringWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! +NSString::stringWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:arguments:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:locale:arguments:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:locale:error: not bound diff --git a/tests/xtro-sharpie/watchOS-Foundation.ignore b/tests/xtro-sharpie/watchOS-Foundation.ignore index e7ceb31fca1a..61c18194d543 100644 --- a/tests/xtro-sharpie/watchOS-Foundation.ignore +++ b/tests/xtro-sharpie/watchOS-Foundation.ignore @@ -7,7 +7,4 @@ ## unsorted !missing-protocol-conformance! NSXPCConnection should conform to NSXPCProxyCreating !missing-selector! NSXPCInterface::interfaceForSelector:argumentIndex:ofReply: not bound -!missing-selector! NSXPCInterface::setInterface:forSelector:argumentIndex:ofReply: not bound - -# Initial result from new rule missing-null-allowed -!missing-null-allowed! 'Foundation.NSExpression Foundation.NSExpression::FromFunction(Foundation.NSExpressionCallbackHandler,Foundation.NSExpression[])' is missing an [NullAllowed] on parameter #1 +!missing-selector! NSXPCInterface::setInterface:forSelector:argumentIndex:ofReply: not bound \ No newline at end of file diff --git a/tests/xtro-sharpie/watchOS-Foundation.todo b/tests/xtro-sharpie/watchOS-Foundation.todo deleted file mode 100644 index 28202156f977..000000000000 --- a/tests/xtro-sharpie/watchOS-Foundation.todo +++ /dev/null @@ -1,78 +0,0 @@ -# https://github.com/xamarin/xamarin-macios/issues/15577 -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index: not bound -!missing-selector! +NSOrderedCollectionChange::changeWithObject:type:index:associatedIndex: not bound -!missing-selector! NSArray::arrayByApplyingDifference: not bound -!missing-selector! NSArray::differenceFromArray: not bound -!missing-selector! NSArray::differenceFromArray:withOptions: not bound -!missing-selector! NSArray::differenceFromArray:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSMutableArray::applyDifference: not bound -!missing-selector! NSMutableOrderedSet::applyDifference: not bound -!missing-selector! NSOrderedCollectionChange::associatedIndex not bound -!missing-selector! NSOrderedCollectionChange::changeType not bound -!missing-selector! NSOrderedCollectionChange::index not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index: not bound -!missing-selector! NSOrderedCollectionChange::initWithObject:type:index:associatedIndex: not bound -!missing-selector! NSOrderedCollectionChange::object not bound -!missing-selector! NSOrderedCollectionDifference::differenceByTransformingChangesWithBlock: not bound -!missing-selector! NSOrderedCollectionDifference::hasChanges not bound -!missing-selector! NSOrderedCollectionDifference::initWithChanges: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: not bound -!missing-selector! NSOrderedCollectionDifference::initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: not bound -!missing-selector! NSOrderedCollectionDifference::insertions not bound -!missing-selector! NSOrderedCollectionDifference::inverseDifference not bound -!missing-selector! NSOrderedCollectionDifference::removals not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions: not bound -!missing-selector! NSOrderedSet::differenceFromOrderedSet:withOptions:usingEquivalenceTest: not bound -!missing-selector! NSOrderedSet::orderedSetByApplyingDifference: not bound -!missing-type! NSOrderedCollectionChange not bound -!missing-type! NSOrderedCollectionDifference not bound -!missing-type! NSPresentationIntent not bound -## appended from unclassified file -## appended from unclassified file -!extra-enum-value! Managed value 102 for NSSearchPathDirectory.TrashDirectory is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 1024 for NSUrlBookmarkResolutionOptions.WithSecurityScope is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 2 for NSItemProviderRepresentationVisibility.Group is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 2048 for NSUrlBookmarkCreationOptions.WithSecurityScope is available for the current platform while the value in the native header is not -!extra-enum-value! Managed value 4096 for NSUrlBookmarkCreationOptions.SecurityScopeAllowOnlyReadAccess is available for the current platform while the value in the native header is not -!deprecated-attribute-missing! NSURLComponents::percentEncodedHost missing a [Deprecated] attribute -!deprecated-attribute-missing! NSURLComponents::setPercentEncodedHost: missing a [Deprecated] attribute -!missing-enum-value! NSActivityOptions native value NSActivityAnimationTrackingEnabled = 35184372088832 not bound -!missing-enum-value! NSActivityOptions native value NSActivityTrackingEnabled = 70368744177664 not bound -!missing-enum-value! NSActivityOptions native value NSActivityUserInteractive = 1095233437695 not bound -!missing-field! NSMarkdownSourcePositionAttributeName not bound -!missing-null-allowed! 'Foundation.NSData Foundation.NSUbiquitousKeyValueStore::GetData(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSDictionary Foundation.NSUbiquitousKeyValueStore::GetDictionary(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSObject Foundation.NSUbiquitousKeyValueStore::ObjectForKey(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'Foundation.NSObject[] Foundation.NSUbiquitousKeyValueStore::GetArray(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.String Foundation.NSUbiquitousKeyValueStore::GetString(System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetArray(Foundation.NSObject[],System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetData(Foundation.NSData,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetDictionary(Foundation.NSDictionary,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::_SetString(System.String,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void Foundation.NSUbiquitousKeyValueStore::SetObjectForKey(Foundation.NSObject,System.String)' is missing an [NullAllowed] on parameter #0 -!missing-protocol-member! NSURLSessionTaskDelegate::URLSession:didCreateTask: not found -!missing-selector! NSAttributedStringMarkdownParsingOptions::appliesSourcePositionAttributes not bound -!missing-selector! NSAttributedStringMarkdownParsingOptions::setAppliesSourcePositionAttributes: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::endLine not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::initWithStartLine:startColumn:endLine:endColumn: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::rangeInString: not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startColumn not bound -!missing-selector! NSAttributedStringMarkdownSourcePosition::startLine not bound -!missing-selector! NSInvocation::invokeUsingIMP: not bound -!missing-selector! NSMutableURLRequest::requiresDNSSECValidation not bound -!missing-selector! NSMutableURLRequest::setRequiresDNSSECValidation: not bound -!missing-selector! NSURLComponents::encodedHost not bound -!missing-selector! NSURLComponents::setEncodedHost: not bound -!missing-selector! NSURLSessionConfiguration::requiresDNSSECValidation not bound -!missing-selector! NSURLSessionConfiguration::setRequiresDNSSECValidation: not bound -!missing-selector! NSXPCConnection::activate not bound -!missing-selector! NSXPCListener::activate not bound -!missing-type! NSAttributedStringMarkdownSourcePosition not bound -!missing-selector! +NSString::localizedStringWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! +NSString::stringWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:arguments:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:locale:arguments:error: not bound -!missing-selector! NSString::initWithValidatedFormat:validFormatSpecifiers:locale:error: not bound