Skip to content

Commit

Permalink
[Foundation] Update bindings to Xcode 15.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dalexsoto committed May 22, 2024
1 parent 1ce124b commit f2e7d7e
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 22 deletions.
17 changes: 17 additions & 0 deletions src/foundation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down Expand Up @@ -13988,6 +13996,10 @@ partial interface NSFilePresenter {
[Export ("accommodatePresentedItemDeletionWithCompletionHandler:")]
void AccommodatePresentedItemDeletion (Action<NSError> completionHandler);

[NoWatch, NoTV, Mac (14, 4), iOS (17, 4), MacCatalyst (17, 4)]
[Export ("accommodatePresentedItemEvictionWithCompletionHandler:")]
void AccommodatePresentedItemEviction (Action<NSError> completionHandler);

[Export ("presentedItemDidMoveToURL:")]
void PresentedItemMoved (NSUrl newURL);

Expand Down Expand Up @@ -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; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 0 additions & 3 deletions tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo
Original file line number Diff line number Diff line change
@@ -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
Expand Down

This file was deleted.

This file was deleted.

4 changes: 4 additions & 0 deletions tests/xtro-sharpie/iOS-Foundation.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -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 -
Expand Down
3 changes: 0 additions & 3 deletions tests/xtro-sharpie/iOS-Foundation.todo
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions tests/xtro-sharpie/macOS-Foundation.todo

This file was deleted.

2 changes: 0 additions & 2 deletions tests/xtro-sharpie/tvOS-Foundation.todo

This file was deleted.

2 changes: 0 additions & 2 deletions tests/xtro-sharpie/watchOS-Foundation.todo

This file was deleted.

0 comments on commit f2e7d7e

Please sign in to comment.