From 517fbd9a02a487987e29e181dbd04fa3184b73be Mon Sep 17 00:00:00 2001 From: Rachel Kang Date: Tue, 5 Oct 2021 11:59:49 -0400 Subject: [PATCH] [AppKit] Update Xcode 13.0 bindings for betas 1,2,3,4,5 --- src/AppKit/Enums.cs | 1 + src/appkit.cs | 260 +++++++++++++++++++++--- tests/xtro-sharpie/common-AppKit.ignore | 1 - tests/xtro-sharpie/macOS-AppKit.ignore | 3 - tests/xtro-sharpie/macOS-AppKit.todo | 41 ---- 5 files changed, 229 insertions(+), 77 deletions(-) delete mode 100644 tests/xtro-sharpie/macOS-AppKit.todo diff --git a/src/AppKit/Enums.cs b/src/AppKit/Enums.cs index d6f1fc90a3b8..fd77021a5a17 100644 --- a/src/AppKit/Enums.cs +++ b/src/AppKit/Enums.cs @@ -3134,6 +3134,7 @@ public enum NSAccessibilityCustomRotorType : long { TextField, UnderlinedText, VisitedLink, + Audiograph, } [NoMacCatalyst] diff --git a/src/appkit.cs b/src/appkit.cs index 0b6fbcde0b26..421645a1a81f 100644 --- a/src/appkit.cs +++ b/src/appkit.cs @@ -39,6 +39,7 @@ using CoreImage; using CoreAnimation; using CoreData; +using Intents; #if !__MACCATALYST__ using OpenGL; #endif @@ -804,6 +805,14 @@ interface NSApplication : NSAccessibilityElementProtocol, NSUserInterfaceValidat [Notification, Field ("NSApplicationDidChangeScreenParametersNotification")] NSString DidChangeScreenParametersNotification { get; } + [Mac (12,0)] + [Field ("NSApplicationProtectedDataWillBecomeUnavailableNotification")] + NSString ProtectedDataWillBecomeUnavailableNotification { get; } + + [Mac (12,0)] + [Field ("NSApplicationProtectedDataDidBecomeAvailableNotification")] + NSString ProtectedDataDidBecomeAvailableNotification { get; } + [Field ("NSApplicationLaunchIsDefaultLaunchKey")] NSString LaunchIsDefaultLaunchKey { get; } @@ -856,6 +865,10 @@ interface NSApplication : NSAccessibilityElementProtocol, NSUserInterfaceValidat [Mac (10,12)] [Export ("enumerateWindowsWithOptions:usingBlock:")] void EnumerateWindows (NSWindowListOptions options, NSApplicationEnumerateWindowsHandler block); + + [Mac (12,0)] + [Export ("protectedDataAvailable")] + bool ProtectedDataAvailable { [Bind ("isProtectedDataAvailable")] get; } } [NoMacCatalyst] @@ -1040,6 +1053,30 @@ interface NSApplicationDelegate { [Deprecated (PlatformName.MacOSX, 11, 0, message: "Now optional on NSApplicationDelegate.")] [Export ("application:delegateHandlesKey:"), DelegateName ("NSApplicationHandlesKey"), NoDefaultValue] bool HandlesKey (NSApplication sender, string key); + + [Mac (12,0)] + [IgnoredInDelegate] + [Export ("applicationSupportsSecureRestorableState:")] + bool ApplicationSupportsSecureRestorableState (NSApplication application); + + [Mac (12,0)] + [IgnoredInDelegate] + [Export ("application:handlerForIntent:")] + [return: NullAllowed] + NSObject GetApplication (NSApplication application, INIntent intent); + + [Mac (12,0)] + [IgnoredInDelegate] + [Export ("applicationShouldAutomaticallyLocalizeKeyEquivalents:")] + bool ApplicationShouldAutomaticallyLocalizeKeyEquivalents (NSApplication application); + + [Mac (12,0)] + [Export ("applicationProtectedDataWillBecomeUnavailable:")] + void ApplicationProtectedDataWillBecomeUnavailable (NSNotification notification); + + [Mac (12,0)] + [Export ("applicationProtectedDataDidBecomeAvailable:")] + void ApplicationProtectedDataDidBecomeAvailable (NSNotification notification); } [NoMacCatalyst] @@ -1565,6 +1602,10 @@ IntPtr Constructor (IntPtr planes, nint width, nint height, nint bps, nint spp, [Field ("NSImageEXIFData")] NSString EXIFData { get; } + [Mac (12,0)] + [Field ("NSImageIPTCData")] + NSString IPTCData { get; } + [Field ("NSImageFallbackBackgroundColor")] NSString FallbackBackgroundColor { get; } } @@ -4144,6 +4185,16 @@ partial interface NSColor : NSCoding, NSCopying, NSSecureCoding, NSPasteboardRea [Export ("systemIndigoColor", ArgumentSemantic.Strong)] NSColor SystemIndigoColor { get; } + [Mac (10, 12)] + [Static] + [Export ("systemMintColor", ArgumentSemantic.Strong)] + NSColor SystemMintColor { get; } + + [Mac (12, 0)] + [Static] + [Export ("systemCyanColor", ArgumentSemantic.Strong)] + NSColor SystemCyanColor { get; } + [Mac (10, 12)] [Static] [Export ("systemTealColor", ArgumentSemantic.Strong)] @@ -5748,6 +5799,11 @@ partial interface NSDocument /* : NSUserActivityRestoring radar://42781537 */ { [Export ("restorableStateKeyPaths", ArgumentSemantic.Copy)] string [] RestorableStateKeyPaths (); + [Mac (12,0)] + [Static] + [Export ("allowedClassesForRestorableStateKeyPath:")] + Class[] AllowedClassesForRestorableStateKeyPath (string keyPath); + [Mac (10,10)] [DebuggerBrowsable(DebuggerBrowsableState.Never)] [Export ("userActivity", ArgumentSemantic.Strong)] @@ -8382,6 +8438,14 @@ interface NSMenuItem : NSCoding, NSCopying, NSAccessibility, NSAccessibilityElem [Mac (10, 13)] [Export ("allowsKeyEquivalentWhenHidden")] bool AllowsKeyEquivalentWhenHidden { get; set; } + + [Mac (12, 0)] + [Export ("allowsAutomaticKeyEquivalentLocalization")] + bool AllowsAutomaticKeyEquivalentLocalization { get; set; } + + [Mac (12, 0)] + [Export ("allowsAutomaticKeyEquivalentMirroring")] + bool AllowsAutomaticKeyEquivalentMirroring { get; set; } } [NoMacCatalyst] @@ -9516,6 +9580,11 @@ partial interface NSImage : NSCopying, NSSecureCoding, NSPasteboardReading, NSPa [Export ("imageWithSymbolConfiguration:")] [return: NullAllowed] NSImage GetImage (NSImageSymbolConfiguration configuration); + + [Mac (12,0)] + [NoMacCatalyst] + [Export ("symbolConfiguration", ArgumentSemantic.Copy)] + NSImageSymbolConfiguration SymbolConfiguration { get; } } [MacCatalyst (13, 0)] @@ -12623,6 +12692,11 @@ partial interface NSResponder : NSCoding, NSTouchBarProvider /* radar://42781537 [Export ("restorableStateKeyPaths", ArgumentSemantic.Copy)] string [] RestorableStateKeyPaths (); + [Mac (12,0)] + [Static] + [Export ("allowedClassesForRestorableStateKeyPath:")] + Class[] AllowedClassesForRestorableStateKeyPath (string keyPath); + [Export ("wantsForwardedScrollEventsForAxis:")] bool WantsForwardedScrollEventsForAxis (NSEventGestureAxis axis); @@ -12891,7 +12965,7 @@ interface NSSavePanel { [Export ("directoryURL", ArgumentSemantic.Copy)] NSUrl DirectoryUrl { get; set; } - [Advice ("Use 'AllowedContentTypes' instead.")] + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'AllowedContentTypes' instead.")] [Export ("allowedFileTypes")] string [] AllowedFileTypes { get; set; } @@ -13069,6 +13143,30 @@ partial interface NSScreen { string LocalizedName { get; } } + [NoMacCatalyst] + partial interface NSScreen + { + [Mac (12,0)] + [Export ("maximumFramesPerSecond")] + nint MaximumFramesPerSecond { get; } + + [Mac (12,0)] + [Export ("minimumRefreshInterval")] + double MinimumRefreshInterval { get; } + + [Mac (12,0)] + [Export ("maximumRefreshInterval")] + double MaximumRefreshInterval { get; } + + [Mac (12,0)] + [Export ("displayUpdateGranularity")] + double DisplayUpdateGranularity { get; } + + [Mac (12,0)] + [Export ("lastDisplayUpdateTimestamp")] + double LastDisplayUpdateTimestamp { get; } + } + [NoMacCatalyst] [BaseType (typeof (NSControl))] interface NSScroller { @@ -13381,18 +13479,18 @@ interface NSSearchField { [Export ("sendsSearchStringImmediately")] bool SendsSearchStringImmediately { get; set; } + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'SearchTextBounds' instead.")] [Mac (10,11)] - [Advice ("Use 'SearchTextBounds' instead.")] [Export ("rectForSearchTextWhenCentered:")] CGRect GetRectForSearchText (bool isCentered); + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'SearchButtonBounds' instead.")] [Mac (10,11)] - [Advice ("Use 'SearchButtonBounds' instead.")] [Export ("rectForSearchButtonWhenCentered:")] CGRect GetRectForSearchButton (bool isCentered); + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'CancelButtonBounds' instead.")] [Mac (10,11)] - [Advice ("Use 'CancelButtonBounds' instead.")] [Export ("rectForCancelButtonWhenCentered:")] CGRect GetRectForCancelButton (bool isCentered); @@ -13404,8 +13502,8 @@ interface NSSearchField { [NullAllowed, Export ("delegate", ArgumentSemantic.Assign)] NSObject WeakDelegate { get; set; } + [Deprecated (PlatformName.MacOSX, 12, 0, message: "No longer availabile, now a no-op.")] [Mac (10,11)] - [Advice ("No longer availabile, now a no-op.")] [Export ("centersPlaceholder")] bool CentersPlaceholder { get; set; } @@ -17897,48 +17995,70 @@ interface NSTextDelegate { void TextDidChange (NSNotification notification); } + /* We are presuming that Apple will be adding this to new classes in the future. + Because they want NSTextAttachmentCell to conform to this, they are essentially + implementing this protocol in the past. So, we have decided to do the same. */ [NoMacCatalyst] - [BaseType (typeof (NSCell))] - interface NSTextAttachmentCell { - [Export ("initImageCell:")] - IntPtr Constructor (NSImage image); + [Protocol (Name="NSTextAttachmentCell")] + interface NSTextAttachmentCellProtocol { - [Export ("initTextCell:")] - IntPtr Constructor (string aString); + [Abstract] + [Export ("drawWithFrame:inView:")] + void DrawWithFrame (CGRect cellFrame, [NullAllowed] NSView controlView); + [Abstract] [Export ("wantsToTrackMouse")] bool WantsToTrackMouse (); + [Abstract] + [Export ("drawWithFrame:inView:characterIndex:")] + void DrawWithFrame (CGRect cellFrame, [NullAllowed] NSView controlView, nuint charIndex); + + [Abstract] + [Export ("drawWithFrame:inView:characterIndex:layoutManager:")] + void DrawWithFrame (CGRect cellFrame, [NullAllowed] NSView controlView, nuint charIndex, NSLayoutManager layoutManager); + + [Abstract] [Export ("highlight:withFrame:inView:")] void Highlight (bool highlight, CGRect cellFrame, NSView controlView); + [Abstract] [Export ("trackMouse:inRect:ofView:untilMouseUp:")] bool TrackMouse (NSEvent theEvent, CGRect cellFrame, NSView controlView, bool untilMouseUp); + [Abstract] [Export ("cellSize")] CGSize CellSize { get; } + [Abstract] [Export ("cellBaselineOffset")] CGPoint CellBaselineOffset { get; } - [Export ("drawWithFrame:inView:characterIndex:")] - void DrawWithFrame (CGRect cellFrame, NSView controlView, nuint charIndex); - - [Export ("drawWithFrame:inView:characterIndex:layoutManager:")] - void DrawWithFrame (CGRect cellFrame, NSView controlView, nuint charIndex, NSLayoutManager layoutManager); + [Abstract] + [Export ("attachment")][NullAllowed] + NSTextAttachment Attachment { get; set; } + [Abstract] [Export ("wantsToTrackMouseForEvent:inRect:ofView:atCharacterIndex:")] bool WantsToTrackMouse (NSEvent theEvent, CGRect cellFrame, NSView controlView, nuint charIndex); + [Abstract] [Export ("trackMouse:inRect:ofView:atCharacterIndex:untilMouseUp:")] bool TrackMouse (NSEvent theEvent, CGRect cellFrame, NSView controlView, nuint charIndex, bool untilMouseUp); + [Abstract] [Export ("cellFrameForTextContainer:proposedLineFragment:glyphPosition:characterIndex:")] CGRect CellFrameForTextContainer (NSTextContainer textContainer, CGRect lineFrag, CGPoint position, nuint charIndex); + } - //Detected properties - [Export ("attachment")][NullAllowed] - NSTextAttachment Attachment { get; set; } + [NoMacCatalyst] + [BaseType (typeof (NSCell))] + interface NSTextAttachmentCell : NSTextAttachmentCellProtocol { + [Export ("initImageCell:")] + IntPtr Constructor (NSImage image); + + [Export ("initTextCell:")] + IntPtr Constructor (string aString); } [NoMacCatalyst] @@ -18622,6 +18742,16 @@ partial interface NSTextView : NSTextInputClient, NSTextLayoutOrientationProvide [Export ("textStorage")] NSTextStorage TextStorage { get; } + [Mac (12,0)] + [NullAllowed] + [Export ("textLayoutManager", ArgumentSemantic.Weak)] + NSTextLayoutManager TextLayoutManager { get; } + + [Mac (12,0)] + [NullAllowed] + [Export ("textContentStorage", ArgumentSemantic.Weak)] + NSTextContentStorage TextContentStorage { get; } + [Export ("setConstrainedFrameSize:")] void SetConstrainedFrameSize (CGSize desiredSize); @@ -19586,12 +19716,12 @@ interface NSToolbarItem : NSCopying, NSMenuItemValidation, NSValidatedUserInterf [Export ("view", ArgumentSemantic.Retain)] NSView View { get; set; } + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use system constraints instead.")] [Export ("minSize")] - [Advice ("Use system constraints instead.")] CGSize MinSize { get; set; } + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use system constraints instead.")] [Export ("maxSize")] - [Advice ("Use system constraints instead.")] CGSize MaxSize { get; set; } [Export ("visibilityPriority")] @@ -20196,9 +20326,10 @@ partial interface NSWindow : NSAnimatablePropertyContainer, NSUserInterfaceItemI [Export ("resizeFlags")] nint ResizeFlags { get; } - - [Export ("keyDown:")] - void KeyDown (NSEvent theEvent); + + // Inherits from NSResponder + // [Export ("keyDown:")] + // void KeyDown (NSEvent theEvent); /* NSWindow.Close by default calls [window release] * This will cause a double free in our code since we're not aware of this @@ -21022,7 +21153,6 @@ partial interface NSWindowRestoration { [Static] [Export ("restoreWindowWithIdentifier:state:completionHandler:")] void RestoreWindow (string identifier, NSCoder state, NSWindowCompletionHandler onCompletion); - } [NoMacCatalyst] @@ -21349,8 +21479,8 @@ interface NSWorkspace : NSWorkspaceAccessibilityExtensions { [Export ("noteFileSystemChanged:")] void NoteFileSystemChanged (string path); + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'NSWorkspace.UrlForApplication' or 'NSUrl.GetResourceValue' instead.")] [Export ("getInfoForFile:application:type:"), ThreadSafe] - [Advice ("Use 'NSWorkspace.UrlForApplication' or 'NSUrl.GetResourceValue' instead.")] bool GetInfo (string fullPath, out string appName, out string fileType); [Export ("isFilePackageAtPath:"), ThreadSafe] @@ -21362,6 +21492,7 @@ interface NSWorkspace : NSWorkspaceAccessibilityExtensions { [Export ("iconForFiles:"), ThreadSafe] NSImage IconForFiles (string[] fullPaths); + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'NSWorkspace.GetIcon' instead.")] [Export ("iconForFileType:"), ThreadSafe, Internal] NSImage IconForFileType (IntPtr fileTypeOrTypeCode); @@ -21412,6 +21543,43 @@ interface NSWorkspace : NSWorkspaceAccessibilityExtensions { [Export ("URLForApplicationToOpenURL:"), ThreadSafe] NSUrl UrlForApplication (NSUrl url ); + + [Mac (12,0)] + [Export ("URLsForApplicationsWithBundleIdentifier:")] + NSUrl[] URLsForApplications (string bundleIdentifier); + + [Mac (12,0)] + [Export ("URLsForApplicationsToOpenURL:")] + NSUrl[] URLsForApplications (NSUrl url); + + [Async] + [Mac (12,0)] + [Export ("setDefaultApplicationAtURL:toOpenContentTypeOfFileAtURL:completionHandler:")] + void SetDefaultApplicationToOpenContentType (NSUrl applicationURL, NSUrl url, [NullAllowed] Action completionHandler); + + [Async] + [Mac (12,0)] + [Export ("setDefaultApplicationAtURL:toOpenURLsWithScheme:completionHandler:")] + void SetDefaultApplication (NSUrl applicationURL, string urlScheme, [NullAllowed] Action completionHandler); + + [Async] + [Mac (12,0)] + [Export ("setDefaultApplicationAtURL:toOpenFileAtURL:completionHandler:")] + void SetDefaultApplicationToOpenFile (NSUrl applicationURL, NSUrl url, [NullAllowed] Action completionHandler); + + [Mac (12,0)] + [Export ("URLForApplicationToOpenContentType:")] + [return: NullAllowed] + NSUrl URLForApplication (UTType contentType); + + [Mac (12,0)] + [Export ("URLsForApplicationsToOpenContentType:")] + NSUrl[] URLsForApplications (UTType contentType); + + [Async] + [Mac (12,0)] + [Export ("setDefaultApplicationAtURL:toOpenContentType:completionHandler:")] + void SetDefaultApplication (NSUrl applicationURL, UTType contentType, [NullAllowed] Action completionHandler); [Export ("absolutePathForAppBundleWithIdentifier:"), ThreadSafe] [Deprecated (PlatformName.MacOSX, 10, 15, message: "Use the 'UrlForApplication' method instead.")] @@ -21434,23 +21602,23 @@ interface NSWorkspace : NSWorkspaceAccessibilityExtensions { [Export ("activeApplication")] NSDictionary ActiveApplication { get; } + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'NSUrl.GetResourceValue' instead.")] [Export ("typeOfFile:error:"), ThreadSafe] - [Advice ("Use 'NSUrl.GetResourceValue' instead.")] string TypeOfFile (string absoluteFilePath, out NSError outError); - [Advice ("Use 'UTType.LocalizedDescription' instead.")] + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'UTType.LocalizedDescription' instead.")] [Export ("localizedDescriptionForType:"), ThreadSafe] string LocalizedDescription (string typeName); - [Advice ("Use 'UTType.PreferredFilenameExtension' instead.")] + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'UTType.PreferredFilenameExtension' instead.")] [Export ("preferredFilenameExtensionForType:"), ThreadSafe] string PreferredFilenameExtension (string typeName); - [Advice ("Compare against 'UTType.GetTypes' instead.")] + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Compare against 'UTType.GetTypes' instead.")] [Export ("filenameExtension:isValidForType:"), ThreadSafe] bool IsFilenameExtensionValid (string filenameExtension, string typeName); - [Advice ("Use 'UTType.ConformsToType' instead.")] + [Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'UTType.ConformsToType' instead.")] [Export ("type:conformsToType:"), ThreadSafe] bool TypeConformsTo (string firstTypeName, string secondTypeName); @@ -22836,6 +23004,14 @@ partial interface NSTextView : NSTextLayoutOrientationProvider { [Notification, Field ("NSTextViewDidChangeTypingAttributesNotification")] NSString DidChangeTypingAttributesNotification { get; } + [Mac (12,0)] + [Notification, Field ("NSTextViewWillSwitchToNSLayoutManagerNotification")] + NSString WillSwitchToNSLayoutManagerNotification { get; } + + [Mac (12,0)] + [Notification, Field ("NSTextViewDidSwitchToNSLayoutManagerNotification")] + NSString DidSwitchToNSLayoutManagerNotification { get; } + [Mac (10, 14)] [Export ("usesAdaptiveColorMappingForDarkAppearance")] bool UsesAdaptiveColorMappingForDarkAppearance { get; set; } @@ -27428,6 +27604,7 @@ interface NSSearchToolbarItem [Export ("initWithItemIdentifier:")] IntPtr Constructor (string itemIdentifier); + [NoMacCatalyst] [Export ("searchField", ArgumentSemantic.Strong)] NSSearchField SearchField { get; set; } @@ -27579,7 +27756,7 @@ interface NSTrackingSeparatorToolbarItem [NoMacCatalyst] [BaseType (typeof (NSObject))] [DisableDefaultCtor] - interface NSImageSymbolConfiguration : NSCopying + interface NSImageSymbolConfiguration : NSCopying, NSSecureCoding { [Static] [Export ("configurationWithPointSize:weight:scale:")] @@ -27600,5 +27777,24 @@ interface NSImageSymbolConfiguration : NSCopying [Static] [Export ("configurationWithScale:")] NSImageSymbolConfiguration Create (NSImageSymbolScale scale); + + [Mac (12,0)] + [Static] + [Export ("configurationWithHierarchicalColor:")] + NSImageSymbolConfiguration Create (NSColor hierarchicalColor); + + [Mac (12,0)] + [Static] + [Export ("configurationWithPaletteColors:")] + NSImageSymbolConfiguration Create (NSColor[] paletteColors); + + [Mac (12,0)] + [Static] + [Export ("configurationPreferringMulticolor")] + NSImageSymbolConfiguration Create (); + + [Mac (12,0)] + [Export ("configurationByApplyingConfiguration:")] + NSImageSymbolConfiguration Create (NSImageSymbolConfiguration configuration); } } diff --git a/tests/xtro-sharpie/common-AppKit.ignore b/tests/xtro-sharpie/common-AppKit.ignore index 9d015a815472..cd8e7895e233 100644 --- a/tests/xtro-sharpie/common-AppKit.ignore +++ b/tests/xtro-sharpie/common-AppKit.ignore @@ -548,7 +548,6 @@ !missing-protocol! NSIgnoreMisspelledWords not bound !missing-protocol! NSInputServerMouseTracker not bound !missing-protocol! NSInputServiceProvider not bound -!missing-protocol! NSTextAttachmentCell not bound !missing-protocol! NSUserInterfaceItemSearching not bound !missing-selector! +NSBitmapImageRep::getTIFFCompressionTypes:count: not bound !missing-selector! +NSBitmapImageRep::representationOfImageRepsInArray:usingType:properties: not bound diff --git a/tests/xtro-sharpie/macOS-AppKit.ignore b/tests/xtro-sharpie/macOS-AppKit.ignore index 354f08eefa0d..87ba93a2530b 100644 --- a/tests/xtro-sharpie/macOS-AppKit.ignore +++ b/tests/xtro-sharpie/macOS-AppKit.ignore @@ -198,7 +198,6 @@ !missing-protocol-conformance! NSTableView should conform to NSTextViewDelegate !missing-protocol-conformance! NSText should conform to NSChangeSpelling !missing-protocol-conformance! NSText should conform to NSIgnoreMisspelledWords -!missing-protocol-conformance! NSTextAttachmentCell should conform to NSTextAttachmentCell !missing-protocol-conformance! NSTitlebarAccessoryViewController should conform to NSAnimatablePropertyContainer !missing-protocol-conformance! NSView should conform to NSAnimatablePropertyContainer !missing-protocol-conformance! NSWindow should conform to NSAnimatablePropertyContainer @@ -1414,8 +1413,6 @@ !missing-null-allowed! 'System.Void AppKit.NSSpellChecker::ShowCorrectionIndicatorOfType(AppKit.NSCorrectionIndicatorType,System.String,System.String[],CoreGraphics.CGRect,AppKit.NSRulerView,AppKit.NSSpellCheckerShowCorrectionIndicatorOfTypeHandler)' is missing an [NullAllowed] on parameter #5 !missing-null-allowed! 'System.Void AppKit.NSStringDrawing_NSString::DrawAtPoint(Foundation.NSString,CoreGraphics.CGPoint,Foundation.NSDictionary)' is missing an [NullAllowed] on parameter #2 !missing-null-allowed! 'System.Void AppKit.NSStringDrawing_NSString::DrawInRect(Foundation.NSString,CoreGraphics.CGRect,Foundation.NSDictionary)' is missing an [NullAllowed] on parameter #2 -!missing-null-allowed! 'System.Void AppKit.NSTextAttachmentCell::DrawWithFrame(CoreGraphics.CGRect,AppKit.NSView,System.nuint)' is missing an [NullAllowed] on parameter #1 -!missing-null-allowed! 'System.Void AppKit.NSTextAttachmentCell::DrawWithFrame(CoreGraphics.CGRect,AppKit.NSView,System.nuint,AppKit.NSLayoutManager)' is missing an [NullAllowed] on parameter #1 !missing-null-allowed! 'System.Void AppKit.NSTextAttachmentCell::Highlight(System.Boolean,CoreGraphics.CGRect,AppKit.NSView)' is missing an [NullAllowed] on parameter #2 !missing-null-allowed! 'System.Void AppKit.NSTextView::.ctor(CoreGraphics.CGRect,AppKit.NSTextContainer)' is missing an [NullAllowed] on parameter #1 !missing-null-allowed! 'System.Void AppKit.NSTrackingArea::.ctor(CoreGraphics.CGRect,AppKit.NSTrackingAreaOptions,Foundation.NSObject,Foundation.NSDictionary)' is missing an [NullAllowed] on parameter #2 diff --git a/tests/xtro-sharpie/macOS-AppKit.todo b/tests/xtro-sharpie/macOS-AppKit.todo deleted file mode 100644 index 9ec4bd2a9ace..000000000000 --- a/tests/xtro-sharpie/macOS-AppKit.todo +++ /dev/null @@ -1,41 +0,0 @@ -!missing-enum-value! NSAccessibilityCustomRotorType native value NSAccessibilityCustomRotorTypeAudiograph = 21 not bound -!missing-field! NSApplicationProtectedDataDidBecomeAvailableNotification not bound -!missing-field! NSApplicationProtectedDataWillBecomeUnavailableNotification not bound -!missing-field! NSImageIPTCData not bound -!missing-field! NSTextViewDidSwitchToNSLayoutManagerNotification not bound -!missing-field! NSTextViewWillSwitchToNSLayoutManagerNotification not bound -!missing-protocol-conformance! NSImageSymbolConfiguration should conform to NSSecureCoding -!missing-protocol-member! NSApplicationDelegate::application:handlerForIntent: not found -!missing-protocol-member! NSApplicationDelegate::applicationProtectedDataDidBecomeAvailable: not found -!missing-protocol-member! NSApplicationDelegate::applicationProtectedDataWillBecomeUnavailable: not found -!missing-protocol-member! NSApplicationDelegate::applicationShouldAutomaticallyLocalizeKeyEquivalents: not found -!missing-protocol-member! NSApplicationDelegate::applicationSupportsSecureRestorableState: not found -!missing-selector! +NSColor::systemCyanColor not bound -!missing-selector! +NSColor::systemMintColor not bound -!missing-selector! +NSDocument::allowedClassesForRestorableStateKeyPath: not bound -!missing-selector! +NSImageSymbolConfiguration::configurationPreferringMulticolor not bound -!missing-selector! +NSImageSymbolConfiguration::configurationWithHierarchicalColor: not bound -!missing-selector! +NSImageSymbolConfiguration::configurationWithPaletteColors: not bound -!missing-selector! +NSResponder::allowedClassesForRestorableStateKeyPath: not bound -!missing-selector! NSApplication::isProtectedDataAvailable not bound -!missing-selector! NSImage::symbolConfiguration not bound -!missing-selector! NSImageSymbolConfiguration::configurationByApplyingConfiguration: not bound -!missing-selector! NSMenuItem::allowsAutomaticKeyEquivalentLocalization not bound -!missing-selector! NSMenuItem::allowsAutomaticKeyEquivalentMirroring not bound -!missing-selector! NSMenuItem::setAllowsAutomaticKeyEquivalentLocalization: not bound -!missing-selector! NSMenuItem::setAllowsAutomaticKeyEquivalentMirroring: not bound -!missing-selector! NSScreenNSScreen::displayUpdateGranularity not bound -!missing-selector! NSScreenNSScreen::lastDisplayUpdateTimestamp not bound -!missing-selector! NSScreenNSScreen::maximumFramesPerSecond not bound -!missing-selector! NSScreenNSScreen::maximumRefreshInterval not bound -!missing-selector! NSScreenNSScreen::minimumRefreshInterval not bound -!missing-selector! NSTextView::textContentStorage not bound -!missing-selector! NSTextView::textLayoutManager not bound -!missing-selector! NSWorkspace::URLForApplicationToOpenContentType: not bound -!missing-selector! NSWorkspace::URLsForApplicationsToOpenContentType: not bound -!missing-selector! NSWorkspace::URLsForApplicationsToOpenURL: not bound -!missing-selector! NSWorkspace::URLsForApplicationsWithBundleIdentifier: not bound -!missing-selector! NSWorkspace::setDefaultApplicationAtURL:toOpenContentType:completionHandler: not bound -!missing-selector! NSWorkspace::setDefaultApplicationAtURL:toOpenContentTypeOfFileAtURL:completionHandler: not bound -!missing-selector! NSWorkspace::setDefaultApplicationAtURL:toOpenFileAtURL:completionHandler: not bound -!missing-selector! NSWorkspace::setDefaultApplicationAtURL:toOpenURLsWithScheme:completionHandler: not bound