From f2e7d7ec03a17a1e47aa55f3403a684f2a787569 Mon Sep 17 00:00:00 2001 From: Alex Soto Date: Tue, 21 May 2024 22:53:03 -0400 Subject: [PATCH] [Foundation] Update bindings to Xcode 15.3 --- src/foundation.cs | 17 +++++++++++++++++ .../iOS-Foundation.ignore | 4 ++++ .../api-annotations-dotnet/iOS-Foundation.todo | 3 --- .../macOS-Foundation.todo | 5 ----- .../api-annotations-dotnet/tvOS-Foundation.todo | 2 -- tests/xtro-sharpie/iOS-Foundation.ignore | 4 ++++ tests/xtro-sharpie/iOS-Foundation.todo | 3 --- tests/xtro-sharpie/macOS-Foundation.todo | 5 ----- tests/xtro-sharpie/tvOS-Foundation.todo | 2 -- tests/xtro-sharpie/watchOS-Foundation.todo | 2 -- 10 files changed, 25 insertions(+), 22 deletions(-) delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo delete mode 100644 tests/xtro-sharpie/api-annotations-dotnet/tvOS-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/src/foundation.cs b/src/foundation.cs index 406320cf2e8e..8f3156865b6d 100644 --- a/src/foundation.cs +++ b/src/foundation.cs @@ -8452,6 +8452,14 @@ interface NSUndoManager { [Export ("canRedo")] bool CanRedo { get; } + [Watch (10, 4), TV (17, 4), Mac (14, 4), iOS (17, 4), MacCatalyst (17, 4)] + [Export ("undoCount")] + nuint UndoCount { get; } + + [Watch (10, 4), TV (17, 4), Mac (14, 4), iOS (17, 4), MacCatalyst (17, 4)] + [Export ("redoCount")] + nuint RedoCount { get; } + [Export ("isUndoing")] bool IsUndoing { get; } @@ -13988,6 +13996,10 @@ partial interface NSFilePresenter { [Export ("accommodatePresentedItemDeletionWithCompletionHandler:")] void AccommodatePresentedItemDeletion (Action completionHandler); + [NoWatch, NoTV, Mac (14, 4), iOS (17, 4), MacCatalyst (17, 4)] + [Export ("accommodatePresentedItemEvictionWithCompletionHandler:")] + void AccommodatePresentedItemEviction (Action completionHandler); + [Export ("presentedItemDidMoveToURL:")] void PresentedItemMoved (NSUrl newURL); @@ -15784,6 +15796,11 @@ interface NSTask { [Export ("currentDirectoryURL")] NSUrl CurrentDirectoryUrl { get; set; } + [NullAllowed] + [Mac (14, 4), MacCatalyst (17, 4)] + [Export ("launchRequirementData", ArgumentSemantic.Copy)] + NSData LaunchRequirementData { get; set; } + [NullAllowed] [Export ("standardInput", ArgumentSemantic.Retain)] NSObject StandardInput { get; set; } diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore index 8b5c3518b6f1..4a4d505c279d 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.ignore @@ -2,6 +2,10 @@ !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 +!missing-selector! NSXPCCoder::decodeXPCObjectOfType:forKey: not bound +!missing-selector! NSXPCCoder::encodeXPCObject:forKey: not bound +!missing-selector! NSXPCInterface::setXPCType:forSelector:argumentIndex:ofReply: not bound +!missing-selector! NSXPCInterface::XPCTypeForSelector:argumentIndex:ofReply: not bound ## does not exists in iOS as a type - but some API refers to it (messy) !unknown-type! NSPortMessage bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo index cce243852bab..93054fc44a8f 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo @@ -1,6 +1,3 @@ -!missing-protocol-member! NSFilePresenter::accommodatePresentedItemEvictionWithCompletionHandler: not found -!missing-selector! NSUndoManager::redoCount not bound -!missing-selector! NSUndoManager::undoCount not bound !missing-selector! NSXPCCoder::decodeXPCObjectOfType:forKey: not bound !missing-selector! NSXPCCoder::encodeXPCObject:forKey: not bound !missing-selector! NSXPCInterface::setXPCType:forSelector:argumentIndex:ofReply: not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo deleted file mode 100644 index 5a3715756ab5..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo +++ /dev/null @@ -1,5 +0,0 @@ -!missing-protocol-member! NSFilePresenter::accommodatePresentedItemEvictionWithCompletionHandler: not found -!missing-selector! NSTask::launchRequirementData not bound -!missing-selector! NSTask::setLaunchRequirementData: not bound -!missing-selector! NSUndoManager::redoCount not bound -!missing-selector! NSUndoManager::undoCount not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.todo b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.todo deleted file mode 100644 index 2630cbe5af9f..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-selector! NSUndoManager::redoCount not bound -!missing-selector! NSUndoManager::undoCount not bound diff --git a/tests/xtro-sharpie/iOS-Foundation.ignore b/tests/xtro-sharpie/iOS-Foundation.ignore index 8908d5f23b0c..29b002f30156 100644 --- a/tests/xtro-sharpie/iOS-Foundation.ignore +++ b/tests/xtro-sharpie/iOS-Foundation.ignore @@ -2,6 +2,10 @@ !missing-selector! NSXPCInterface::interfaceForSelector:argumentIndex:ofReply: not bound !missing-selector! NSXPCInterface::setInterface:forSelector:argumentIndex:ofReply: not bound !missing-enum! NSNetServicesError not bound +!missing-selector! NSXPCCoder::decodeXPCObjectOfType:forKey: not bound +!missing-selector! NSXPCCoder::encodeXPCObject:forKey: not bound +!missing-selector! NSXPCInterface::setXPCType:forSelector:argumentIndex:ofReply: not bound +!missing-selector! NSXPCInterface::XPCTypeForSelector:argumentIndex:ofReply: not bound # Apple started refusing applications that use those selectors (desk #63237) # The situation is a bit confusing since NSPortMessage.h is not part of iOS SDK - diff --git a/tests/xtro-sharpie/iOS-Foundation.todo b/tests/xtro-sharpie/iOS-Foundation.todo index cce243852bab..93054fc44a8f 100644 --- a/tests/xtro-sharpie/iOS-Foundation.todo +++ b/tests/xtro-sharpie/iOS-Foundation.todo @@ -1,6 +1,3 @@ -!missing-protocol-member! NSFilePresenter::accommodatePresentedItemEvictionWithCompletionHandler: not found -!missing-selector! NSUndoManager::redoCount not bound -!missing-selector! NSUndoManager::undoCount not bound !missing-selector! NSXPCCoder::decodeXPCObjectOfType:forKey: not bound !missing-selector! NSXPCCoder::encodeXPCObject:forKey: not bound !missing-selector! NSXPCInterface::setXPCType:forSelector:argumentIndex:ofReply: not bound diff --git a/tests/xtro-sharpie/macOS-Foundation.todo b/tests/xtro-sharpie/macOS-Foundation.todo deleted file mode 100644 index 5a3715756ab5..000000000000 --- a/tests/xtro-sharpie/macOS-Foundation.todo +++ /dev/null @@ -1,5 +0,0 @@ -!missing-protocol-member! NSFilePresenter::accommodatePresentedItemEvictionWithCompletionHandler: not found -!missing-selector! NSTask::launchRequirementData not bound -!missing-selector! NSTask::setLaunchRequirementData: not bound -!missing-selector! NSUndoManager::redoCount not bound -!missing-selector! NSUndoManager::undoCount not bound diff --git a/tests/xtro-sharpie/tvOS-Foundation.todo b/tests/xtro-sharpie/tvOS-Foundation.todo deleted file mode 100644 index 2630cbe5af9f..000000000000 --- a/tests/xtro-sharpie/tvOS-Foundation.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-selector! NSUndoManager::redoCount not bound -!missing-selector! NSUndoManager::undoCount not bound diff --git a/tests/xtro-sharpie/watchOS-Foundation.todo b/tests/xtro-sharpie/watchOS-Foundation.todo deleted file mode 100644 index 2630cbe5af9f..000000000000 --- a/tests/xtro-sharpie/watchOS-Foundation.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-selector! NSUndoManager::redoCount not bound -!missing-selector! NSUndoManager::undoCount not bound