Skip to content

Commit

Permalink
[appkit] Xcode 14.1 Beta 1-3 (#16255)
Browse files Browse the repository at this point in the history
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
  • Loading branch information
chamons and rolfbjarne committed Oct 11, 2022
1 parent b959804 commit 8eb182f
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 17 deletions.
5 changes: 4 additions & 1 deletion src/AppKit/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,10 @@ public enum NSWindowCollectionBehavior : ulong {
FullScreenAuxiliary = 1 << 8,
FullScreenNone = 1 << 9,
[Mac (10, 11)] FullScreenAllowsTiling = 1 << 11,
[Mac (10, 11)] FullScreenDisallowsTiling = 1 << 12
[Mac (10, 11)] FullScreenDisallowsTiling = 1 << 12,
[Mac (10, 13)] Primary = 1 << 16,
[Mac (10, 13)] Auxiliary = 1 << 17,
[Mac (10, 13)] CanJoinAllApplications = 1 << 18,
}

[NoMacCatalyst]
Expand Down
15 changes: 15 additions & 0 deletions src/appkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19700,6 +19700,17 @@ NSTextContentType ContentType {
[Export ("selectedRanges", ArgumentSemantic.Copy)]
NSArray SelectedRanges { get; set; }
#endif

[NoiOS]
[Mac (13, 0)]
[Export ("initUsingTextLayoutManager:")]
NativeHandle Constructor (bool usingTextLayoutManager);

[NoiOS]
[Static]
[Mac (13, 0)]
[Export ("textViewUsingTextLayoutManager:")]
NSTextView Create (bool usingTextLayoutManager);
}

[NoMacCatalyst]
Expand Down Expand Up @@ -22960,6 +22971,10 @@ interface NSSharingServicePicker
[Mac (13, 0)]
[Export ("standardShareMenuItem")]
NSMenuItem StandardShareMenuItem { get; }

[NoiOS, Mac (13,0)]
[Export ("close")]
void Close ();
}

interface INSSharingServicePickerDelegate {}
Expand Down
1 change: 1 addition & 0 deletions src/foundation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13080,6 +13080,7 @@ interface NSFileManager_NSUserInformation {
partial interface NSFilePresenter {
[Abstract]
[Export ("presentedItemURL", ArgumentSemantic.Retain)]
[NullAllowed]
#if NET
NSUrl PresentedItemUrl { get; }
#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,6 @@
!missing-null-allowed! 'Foundation.NSUrl Foundation.NSFileManager::GetUrl(Foundation.NSSearchPathDirectory,Foundation.NSSearchPathDomain,Foundation.NSUrl,System.Boolean,Foundation.NSError&)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSUrl Foundation.NSFileManager::GetUrlForPublishingUbiquitousItem(Foundation.NSUrl,Foundation.NSDate&,Foundation.NSError&)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSUrl Foundation.NSFileManager::GetUrlForUbiquityContainer(System.String)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSUrl Foundation.NSFilePresenter::get_PresentedItemUrl()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSUrl Foundation.NSFileVersion::ReplaceItem(Foundation.NSUrl,Foundation.NSFileVersionReplacingOptions,Foundation.NSError&)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSUrl Foundation.NSFileWrapper::get_SymbolicLinkDestinationURL()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSUrl Foundation.NSHttpCookie::get_CommentUrl()' is missing an [NullAllowed] on return type
Expand Down
7 changes: 0 additions & 7 deletions tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.todo
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,3 @@
!missing-type! NSNibConnector not bound
!missing-type! NSNibControlConnector not bound
!missing-type! NSNibOutletConnector not bound
!missing-enum-value! NSWindowCollectionBehavior native value NSWindowCollectionBehaviorAuxiliary = 131072 not bound
!missing-enum-value! NSWindowCollectionBehavior native value NSWindowCollectionBehaviorCanJoinAllApplications = 262144 not bound
!missing-enum-value! NSWindowCollectionBehavior native value NSWindowCollectionBehaviorPrimary = 65536 not bound
!missing-null-allowed! 'Foundation.NSUrl AppKit.NSDocument::get_PresentedItemUrl()' is missing an [NullAllowed] on return type
!missing-selector! +NSTextView::textViewUsingTextLayoutManager: not bound
!missing-selector! NSSharingServicePicker::close not bound
!missing-selector! NSTextView::initUsingTextLayoutManager: not bound
1 change: 0 additions & 1 deletion tests/xtro-sharpie/common-Foundation.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,6 @@
!missing-null-allowed! 'Foundation.NSUrl Foundation.NSFileManager::GetUrl(Foundation.NSSearchPathDirectory,Foundation.NSSearchPathDomain,Foundation.NSUrl,System.Boolean,Foundation.NSError&)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSUrl Foundation.NSFileManager::GetUrlForPublishingUbiquitousItem(Foundation.NSUrl,Foundation.NSDate&,Foundation.NSError&)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSUrl Foundation.NSFileManager::GetUrlForUbiquityContainer(System.String)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSUrl Foundation.NSFilePresenter::get_PresentedItemURL()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSUrl Foundation.NSFileVersion::ReplaceItem(Foundation.NSUrl,Foundation.NSFileVersionReplacingOptions,Foundation.NSError&)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSUrl Foundation.NSFileWrapper::get_SymbolicLinkDestinationURL()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSUrl Foundation.NSHttpCookie::get_CommentUrl()' is missing an [NullAllowed] on return type
Expand Down
7 changes: 0 additions & 7 deletions tests/xtro-sharpie/macOS-AppKit.todo
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,3 @@
!missing-type! NSNibConnector not bound
!missing-type! NSNibControlConnector not bound
!missing-type! NSNibOutletConnector not bound
!missing-enum-value! NSWindowCollectionBehavior native value NSWindowCollectionBehaviorAuxiliary = 131072 not bound
!missing-enum-value! NSWindowCollectionBehavior native value NSWindowCollectionBehaviorCanJoinAllApplications = 262144 not bound
!missing-enum-value! NSWindowCollectionBehavior native value NSWindowCollectionBehaviorPrimary = 65536 not bound
!missing-null-allowed! 'Foundation.NSUrl AppKit.NSDocument::get_PresentedItemURL()' is missing an [NullAllowed] on return type
!missing-selector! +NSTextView::textViewUsingTextLayoutManager: not bound
!missing-selector! NSSharingServicePicker::close not bound
!missing-selector! NSTextView::initUsingTextLayoutManager: not bound

4 comments on commit 8eb182f

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.