Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[appkit] Xcode 14.1 Beta 1-3 #16255

Merged
merged 3 commits into from
Oct 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -13076,6 +13076,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