diff --git a/src/AppKit/Enums.cs b/src/AppKit/Enums.cs index 51cc262a743d..eeb062990042 100644 --- a/src/AppKit/Enums.cs +++ b/src/AppKit/Enums.cs @@ -1026,6 +1026,7 @@ public enum NSButtonType : ulong { [NoMacCatalyst] [Native] public enum NSBezelStyle : ulong { + Automatic = 0, Rounded = 1, RegularSquare, ThickSquare, @@ -1206,7 +1207,12 @@ public enum NSWindingRule : ulong { [NoMacCatalyst] [Native] public enum NSBezierPathElement : ulong { - MoveTo, LineTo, CurveTo, ClosePath + MoveTo, + LineTo, + CurveTo, + ClosePath, + [Mac (14, 0)] + QuadraticCurveTo, } #endregion @@ -1817,7 +1823,9 @@ public enum NSSplitViewDividerStyle : long { public enum NSSplitViewItemBehavior : long { Default, Sidebar, - ContentList + ContentList, + [Mac (14, 0)] + Inspector, } [NoMacCatalyst] @@ -3151,4 +3159,82 @@ public enum NSComboButtonStyle : long { Split = 0, Unified = 1, } + + [NoMacCatalyst, Mac (14, 0)] + [Native] + public enum NSImageDynamicRange : long { + Unspecified = -1, + Standard = 0, + ConstrainedHigh = 1, + High = 2, + } + + [NoMacCatalyst, Mac (14, 0)] + [Native] + public enum NSMenuItemBadgeType : long { + None = 0, + Updates, + NewItems, + Alerts, + } + + [NoMacCatalyst, Mac (14, 0)] + [Native] + public enum NSMenuPresentationStyle : long { + Regular = 0, + Palette = 1, + } + + [NoMacCatalyst, Mac (14, 0)] + [Native] + public enum NSMenuSelectionMode : long { + Automatic = 0, + SelectOne = 1, + SelectAny = 2, + } + + [NoMacCatalyst, Mac (14, 0)] + [Native] + public enum NSPageLayoutResult : long { + Cancelled = 0, + Changed, + } + + [NoMacCatalyst, Mac (14, 0)] + [Native] + public enum NSPrintPanelResult : long { + Cancelled = 0, + Printed, + } + + [NoMacCatalyst, Mac (14, 0)] + [Native] + public enum NSTextCursorAccessoryPlacement : long { + Unspecified, + Backward, + Forward, + Invisible, + Center, + OffscreenLeft, + OffscreenTop, + OffscreenRight, + OffscreenBottom, + } + + [NoMacCatalyst, Mac (14, 0)] + [Native] + [Flags] + public enum NSTextInsertionIndicatorAutomaticModeOptions : long { + EffectsView = 1L << 0, + WhileTracking = 1L << 1, + } + + [NoMacCatalyst, Mac (14, 0)] + [Native] + public enum NSTextInsertionIndicatorDisplayMode : long { + Automatic = 0, + Hidden, + Visible, + } + } diff --git a/src/Foundation/NSAttributedStringDocumentAttributes.cs b/src/Foundation/NSAttributedStringDocumentAttributes.cs index c42ffd9aec06..8183608693fe 100644 --- a/src/Foundation/NSAttributedStringDocumentAttributes.cs +++ b/src/Foundation/NSAttributedStringDocumentAttributes.cs @@ -21,6 +21,7 @@ #if !COREBUILD && HAS_WEBKIT using WebKit; #endif +using ObjCRuntime; #if !COREBUILD #if __MACOS__ diff --git a/src/appkit.cs b/src/appkit.cs index e1f352741bfb..7553e9a2ebf1 100644 --- a/src/appkit.cs +++ b/src/appkit.cs @@ -41,6 +41,7 @@ using CoreData; using Intents; using SharedWithYouCore; +using Symbols; #if !__MACCATALYST__ using OpenGL; #endif @@ -526,6 +527,7 @@ interface NSApplication : NSAccessibilityElementProtocol, NSUserInterfaceValidat [Export ("deactivate")] void Deactivate (); + [Deprecated (PlatformName.MacOSX, 14, 0)] [Export ("activateIgnoringOtherApps:")] void ActivateIgnoringOtherApps (bool flag); @@ -858,6 +860,18 @@ interface NSApplication : NSAccessibilityElementProtocol, NSUserInterfaceValidat [Mac (12, 0)] [Export ("protectedDataAvailable")] bool ProtectedDataAvailable { [Bind ("isProtectedDataAvailable")] get; } + + [Mac (14, 0)] + [Export ("activate")] + void Activate (); + + [Mac (14, 0)] + [Export ("yieldActivationToApplication:")] + void YieldActivation (NSRunningApplication toApplication); + + [Mac (14, 0)] + [Export ("yieldActivationToApplicationWithBundleIdentifier:")] + void YieldActivation (string toApplicationWithBundleIdentifier); } [NoMacCatalyst] @@ -1433,6 +1447,23 @@ interface NSBezierPath : NSSecureCoding, NSCopying { [Wrap ("AppendPath (path)")] void Append (NSBezierPath path); + + [Mac (14, 0)] + [Export ("CGPath", ArgumentSemantic.Assign)] + CGPath CGPath { get; set; } + + [Mac (14, 0)] + [Export ("curveToPoint:controlPoint:")] + void CurveTo (CGPoint endPoint, CGPoint controlPoint); + + [Mac (14, 0)] + [Export ("relativeCurveToPoint:controlPoint:")] + void RelativeCurveTo (CGPoint endPoint, CGPoint controlPoint); + + [Mac (14, 0)] + [Static] + [Export ("bezierPathWithCGPath:")] + NSBezierPath FromCGPath (CGPath cgPath); } [NoMacCatalyst] @@ -3597,7 +3628,7 @@ interface NSCollectionViewTransitionLayout { [ThreadSafe] [BaseType (typeof (NSObject))] [DisableDefaultCtor] // -colorSpaceName not valid for the NSColor ; need to first convert colorspace. - partial interface NSColor : NSCoding, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting { + partial interface NSColor : NSCoding, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, NSAccessibilityColor { [Static] [Export ("colorWithCalibratedWhite:alpha:")] NSColor FromCalibratedWhite (nfloat white, nfloat alpha); @@ -4317,6 +4348,41 @@ partial interface NSColor : NSCoding, NSCopying, NSSecureCoding, NSPasteboardRea [Static] [Export ("colorWithName:dynamicProvider:")] NSColor GetColor ([NullAllowed] string colorName, Func dynamicProvider); + + [Mac (14, 0)] + [Static] + [Export ("systemFillColor", ArgumentSemantic.Strong)] + NSColor SystemFill { get; } + + [Mac (14, 0)] + [Static] + [Export ("secondarySystemFillColor", ArgumentSemantic.Strong)] + NSColor SecondarySystemFill { get; } + + [Mac (14, 0)] + [Static] + [Export ("tertiarySystemFillColor", ArgumentSemantic.Strong)] + NSColor TertiarySystemFill { get; } + + [Mac (14, 0)] + [Static] + [Export ("quaternarySystemFillColor", ArgumentSemantic.Strong)] + NSColor QuaternarySystemFill { get; } + + [Mac (14, 0)] + [Static] + [Export ("quinarySystemFillColor", ArgumentSemantic.Strong)] + NSColor QuinarySystemFill { get; } + + [Mac (14, 0)] + [Static] + [Export ("quinaryLabelColor", ArgumentSemantic.Strong)] + NSColor QuinaryLabel { get; } + + [Mac (14, 0)] + [Static] + [Export ("textInsertionPointColor", ArgumentSemantic.Strong)] + NSColor TextInsertionPoint { get; } } [NoMacCatalyst] @@ -4602,6 +4668,7 @@ interface NSColorWell { void TakeColorFrom (NSObject sender); //Detected properties + [Deprecated (PlatformName.MacOSX, 14, 0)] [Export ("bordered")] bool Bordered { [Bind ("isBordered")] get; set; } @@ -4626,6 +4693,15 @@ interface NSColorWell { [Export ("pulldownAction", ArgumentSemantic.Assign)] [NullAllowed] Selector PulldownAction { get; set; } + + [Mac (14, 0)] + [Export ("supportsAlpha")] + bool SupportsAlpha { get; set; } + + [Mac (14, 0)] + [Static] + [Export ("colorWellWithStyle:")] + NSColorWell Create (NSColorWellStyle style); } [NoMacCatalyst] @@ -5152,7 +5228,7 @@ interface NSController : NSCoding, NSEditorRegistration [MacCatalyst (13, 1)] [BaseType (typeof (NSObject))] - interface NSCursor : NSCoding { + interface NSCursor : NSCoding, NSSecureCoding { [Static] [Export ("currentCursor")] NSCursor CurrentCursor { get; } @@ -8395,6 +8471,30 @@ partial interface NSMenu : NSCoding, NSCopying, NSAccessibility, NSAccessibility [Export ("userInterfaceLayoutDirection", ArgumentSemantic.Assign)] NSUserInterfaceLayoutDirection UserInterfaceLayoutDirection { get; set; } + + // from @interface NSPaletteMenus (NSMenu) + [Mac (14, 0)] + [Static] + [Export ("paletteMenuWithColors:titles:selectionHandler:")] + NSMenu CreatePaletteMenu (NSColor [] colors, string [] itemTitles, [NullAllowed] Action onSelectionChange); + + [Mac (14, 0)] + [Static] + [Export ("paletteMenuWithColors:titles:templateImage:selectionHandler:")] + NSMenu CreatePaletteMenu (NSColor [] colors, string [] itemTitles, NSImage image, [NullAllowed] Action onSelectionChange); + + [Mac (14, 0)] + [Export ("presentationStyle", ArgumentSemantic.Assign)] + NSMenuPresentationStyle PresentationStyle { get; set; } + + [Mac (14, 0)] + [Export ("selectionMode", ArgumentSemantic.Assign)] + NSMenuSelectionMode SelectionMode { get; set; } + + [Mac (14, 0)] + [Export ("selectedItems", ArgumentSemantic.Copy)] + NSMenuItem [] SelectedItems { get; set; } + } interface INSMenuDelegate { } @@ -8549,6 +8649,20 @@ interface NSMenuItem : NSCoding, NSCopying, NSAccessibility, NSAccessibilityElem [Mac (12, 0)] [Export ("allowsAutomaticKeyEquivalentMirroring")] bool AllowsAutomaticKeyEquivalentMirroring { get; set; } + + [Mac (14, 0)] + [NullAllowed] + [Export ("badge", ArgumentSemantic.Copy)] + NSMenuItemBadge Badge { get; set; } + + [Mac (14, 0)] + [Export ("sectionHeader")] + bool IsSectionHeader { [Bind ("isSectionHeader")] get; } + + [Mac (14, 0)] + [Static] + [Export ("sectionHeaderWithTitle:")] + NSMenuItem CreateSectionHeader (string title); } [NoMacCatalyst] @@ -9346,6 +9460,14 @@ partial interface NSOutlineViewDelegate { [Export ("outlineView:tintConfigurationForItem:")] [return: NullAllowed] NSTintConfiguration GetTintConfiguration (NSOutlineView outlineView, NSObject item); + + [Mac (14, 0)] + [Export ("outlineView:userCanChangeVisibilityOfTableColumn:"), DelegateName ("NSOutlineViewUserCanChangeColumnVisibility"), DefaultValue (false)] + bool UserCanChangeVisibility (NSOutlineView outlineView, NSTableColumn column); + + [Mac (14, 0)] + [Export ("outlineView:userDidChangeVisibilityOfTableColumns:"), EventArgs ("NSOutlineViewUserCanChangeColumnsVisibility")] + void UserDidChangeVisibility (NSOutlineView outlineView, NSTableColumn [] columns); } [NoMacCatalyst] @@ -9549,12 +9671,18 @@ partial interface NSImage : NSCopying, NSSecureCoding, NSPasteboardReading, NSPa [Export ("isValid")] bool IsValid { get; } + [Obsoleted (PlatformName.MacOSX, 14, 0, message: "'ImageWithSize' should be used instead.")] + [Obsoleted (PlatformName.MacCatalyst, 17, 0, message: "'ImageWithSize' should be used instead.")] [Export ("lockFocus")] void LockFocus (); + [Obsoleted (PlatformName.MacOSX, 14, 0, message: "'ImageWithSize' should be used instead.")] + [Obsoleted (PlatformName.MacCatalyst, 17, 0, message: "'ImageWithSize' should be used instead.")] [Export ("lockFocusFlipped:")] void LockFocusFlipped (bool flipped); + [Obsoleted (PlatformName.MacOSX, 14, 0, message: "'ImageWithSize' should be used instead.")] + [Obsoleted (PlatformName.MacCatalyst, 17, 0, message: "'ImageWithSize' should be used instead.")] [Export ("unlockFocus")] void UnlockFocus (); @@ -9733,6 +9861,21 @@ partial interface NSImage : NSCopying, NSSecureCoding, NSPasteboardReading, NSPa [Export ("imageWithSystemSymbolName:variableValue:accessibilityDescription:")] [return: NullAllowed] NSImage GetImage (string systemSymbolName, double variableValue, [NullAllowed] string accessibilityDescription); + + [Mac (14, 0), NoMacCatalyst] + [Export ("imageWithLocale:")] + NSImage GetImage ([NullAllowed] NSLocale locale); + + [NullAllowed] + [Mac (14, 0), NoMacCatalyst] + [Export ("locale", ArgumentSemantic.Copy)] + NSLocale Locale { get; } + + [Mac (14, 0)] + [Static] + [Export ("imageWithSymbolName:bundle:variableValue:")] + [return: NullAllowed] + NSImage GetImage (string symbolName, [NullAllowed] NSBundle bundle, double variableValue); } [MacCatalyst (13, 1)] @@ -10551,6 +10694,65 @@ interface NSImageView : NSAccessibilityImage, NSMenuItemValidation { [Mac (11, 0)] [Export ("symbolConfiguration", ArgumentSemantic.Copy)] NSImageSymbolConfiguration SymbolConfiguration { get; set; } + + // from the category NSSymbolEffect (NSImageView) + + [Mac (14, 0)] + [Export ("addSymbolEffect:")] + void AddSymbolEffect (NSSymbolEffect symbolEffect); + + [Mac (14, 0)] + [Export ("addSymbolEffect:options:")] + void AddSymbolEffect (NSSymbolEffect symbolEffect, NSSymbolEffectOptions options); + + [Mac (14, 0)] + [Export ("addSymbolEffect:options:animated:")] + void AddSymbolEffect (NSSymbolEffect symbolEffect, NSSymbolEffectOptions options, bool animated); + + [Mac (14, 0)] + [Export ("removeSymbolEffectOfType:")] + void RemoveSymbolEffect (NSSymbolEffect symbolEffect); + + [Mac (14, 0)] + [Export ("removeSymbolEffectOfType:options:")] + void RemoveSymbolEffect (NSSymbolEffect symbolEffect, NSSymbolEffectOptions options); + + [Mac (14, 0)] + [Export ("removeSymbolEffectOfType:options:animated:")] + void RemoveSymbolEffect (NSSymbolEffect symbolEffect, NSSymbolEffectOptions options, bool animated); + + [Mac (14, 0)] + [Export ("removeAllSymbolEffects")] + void RemoveAllSymbolEffects (); + + [Mac (14, 0)] + [Export ("removeAllSymbolEffectsWithOptions:")] + void RemoveAllSymbolEffects (NSSymbolEffectOptions options); + + [Mac (14, 0)] + [Export ("removeAllSymbolEffectsWithOptions:animated:")] + void RemoveAllSymbolEffects (NSSymbolEffectOptions options, bool animated); + + [Mac (14, 0)] + [Export ("setSymbolImage:withContentTransition:")] + void SetSymbolImage (NSImage symbolImage, NSSymbolContentTransition contentTransition); + + [Mac (14, 0)] + [Export ("setSymbolImage:withContentTransition:options:")] + void SetSymbolImage (NSImage symbolImage, NSSymbolContentTransition contentTransition, NSSymbolEffectOptions options); + + [Mac (14, 0)] + [Static] + [Export ("defaultPreferredImageDynamicRange", ArgumentSemantic.Assign)] + NSImageDynamicRange DefaultPreferredImageDynamicRange { get; set; } + + [Mac (14, 0)] + [Export ("preferredImageDynamicRange", ArgumentSemantic.Assign)] + NSImageDynamicRange PreferredImageDynamicRange { get; set; } + + [Mac (14, 0)] + [Export ("imageDynamicRange")] + NSImageDynamicRange ImageDynamicRange { get; } } [NoMacCatalyst] @@ -11031,6 +11233,7 @@ interface NSPageLayout { [Export ("accessoryControllers")] NSViewController [] AccessoryControllers (); + [Deprecated (PlatformName.MacOSX, 14, 0)] [Export ("beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:")] void BeginSheet (NSPrintInfo printInfo, NSWindow docWindow, [NullAllowed] NSObject del, [NullAllowed] Selector didEndSelector, IntPtr contextInfo); @@ -11042,6 +11245,11 @@ interface NSPageLayout { [Export ("printInfo")] NSPrintInfo PrintInfo { get; } + + [Async] + [Mac (14, 0)] + [Export ("beginSheetUsingPrintInfo:onWindow:completionHandler:")] + void BeginSheet (NSPrintInfo printInfo, NSWindow parentWindow, [NullAllowed] Action handler); } [NoMacCatalyst] @@ -11739,6 +11947,14 @@ interface NSPopover : NSAppearanceCustomization, NSAccessibilityElementProtocol, [Export ("detached")] bool Detached { [Bind ("isDetached")] get; } + + [Mac (14, 0)] + [Export ("showRelativeToToolbarItem:")] + void ShowRelative (NSToolbarItem toToolbarItem); + + [Mac (14, 0)] + [Export ("hasFullSizeContent")] + bool HasFullSizeContent { get; set; } } partial interface NSPopoverCloseEventArgs { @@ -12308,6 +12524,7 @@ interface NSPrintPanel { [Export ("accessoryControllers")] NSViewController [] AccessoryControllers (); + [Deprecated (PlatformName.MacOSX, 14, 0)] [Export ("beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:")] void BeginSheet (NSPrintInfo printInfo, NSWindow docWindow, [NullAllowed] NSObject del, [NullAllowed] Selector didEndSelector, IntPtr contextInfo); @@ -12332,6 +12549,11 @@ interface NSPrintPanel { [Export ("jobStyleHint")] string JobStyleHint { get; set; } + + [Async] + [Mac (14, 0)] + [Export ("beginSheetUsingPrintInfo:onWindow:completionHandler:")] + void BeginSheet (NSPrintInfo printInfo, NSWindow parentWindow, [NullAllowed] Action handler); } [NoMacCatalyst] @@ -12382,6 +12604,11 @@ interface NSProgressIndicator : NSAccessibilityProgressIndicator { [Export ("usesThreadedAnimation")] bool UsesThreadedAnimation { get; set; } + + [Mac (14, 0)] + [NullAllowed] + [Export ("observedProgress", ArgumentSemantic.Strong)] + NSProgress ObservedProgress { get; set; } } // Technically on NSResponder but responder subclasses can implement any that make sense @@ -13168,6 +13395,9 @@ interface NSSavePanel { [Export ("tagNames", ArgumentSemantic.Copy)] string [] TagNames { get; set; } + [Mac (14, 0)] + [NullAllowed, Export ("identifier")] + string Identifier { get; set; } } #if !NET && !__MACCATALYST__ @@ -13294,6 +13524,12 @@ partial interface NSScreen { [Mac (12, 0)] [Export ("lastDisplayUpdateTimestamp")] double LastDisplayUpdateTimestamp { get; } + + // from @interface NSDisplayLink (NSScreen) + + [Mac (14, 0)] + [Export ("displayLinkWithTarget:selector:")] + CADisplayLink GetDisplayLink (NSObject target, Selector selector); } [NoMacCatalyst] @@ -14457,6 +14693,14 @@ partial interface NSSpellChecker { [Export ("deletesAutospaceBetweenString:andString:language:")] bool DeletesAutospace (string precedingString, string followingString, [NullAllowed] string language); + [Notification] + [NoMacCatalyst, Mac (14, 0)] + [Field ("NSSpellCheckerDidChangeAutomaticInlinePredictionNotification")] + NSString DidChangeAutomaticInlinePredictionNotification { get; } + + [NoMacCatalyst, Mac (14, 0)] + [Export ("showInlinePredictionForCandidates:client:")] + void ShowInlinePrediction (NSTextCheckingResult [] candidates, INSTextInputClient client); } [NoMacCatalyst] @@ -14684,6 +14928,10 @@ interface NSSplitViewController : NSSplitViewDelegate, NSUserInterfaceValidation [Export ("splitView:shouldCollapseSubview:forDoubleClickOnDividerAtIndex:")] [Deprecated (PlatformName.MacOSX, 10, 15, message: "This delegate method is never called, and NSSplitViewController's implementation always returns false.")] new bool ShouldCollapseForDoubleClick (NSSplitView splitView, NSView subview, nint doubleClickAtDividerIndex); + + [Mac (14, 0)] + [Export ("toggleInspector:")] + void ToggleInspector ([NullAllowed] NSObject sender); } [NoMacCatalyst] @@ -14740,6 +14988,15 @@ interface NSSplitViewItem : NSAnimatablePropertyContainer, NSCoding { [Mac (11, 0)] [Export ("titlebarSeparatorStyle", ArgumentSemantic.Assign)] NSTitlebarSeparatorStyle TitlebarSeparatorStyle { get; set; } + + [Mac (14, 0)] + [Export ("canCollapseFromWindowResize")] + bool CanCollapseFromWindowResize { get; set; } + + [Mac (11, 0)] + [Static] + [Export ("inspectorWithViewController:")] + NSSplitViewItem CreateInspector (NSViewController viewController); } [NoMacCatalyst] @@ -16364,6 +16621,12 @@ partial interface NSView : NSDraggingDestination, NSAnimatablePropertyContainer, [Mac (11, 0)] [Export ("layoutMarginsGuide", ArgumentSemantic.Strong)] NSLayoutGuide LayoutMarginsGuide { get; } + + // category NSDisplayLink (NSView) + + [Mac (14, 0)] + [Export ("displayLinkWithTarget:selector:")] + CADisplayLink GetDisplayLink (NSObject target, Selector selector); } [NoMacCatalyst] @@ -16549,6 +16812,19 @@ interface NSViewController : NSResponder, NSUserInterfaceItemIdentification, NSE [Export ("preferredMaximumSize")] CGSize PreferredMaximumSize { get; } + + [Mac (14, 0)] + [NullAllowed] + [Export ("viewIfLoaded", ArgumentSemantic.Strong)] + NSView ViewIfLoaded { get; } + + [Mac (14, 0)] + [Export ("presentViewController:asPopoverRelativeToRect:ofView:preferredEdge:behavior:hasFullSizeContent:")] + void Present (NSViewController viewController, CGRect positioningRect, NSView positioningView, NSRectEdge preferredEdge, NSPopoverBehavior behavior, byte hasFullSizeContent); + + [Mac (14, 0)] + [Export ("loadViewIfNeeded")] + void LoadViewIfNeeded (); } [NoMacCatalyst] @@ -18492,6 +18768,14 @@ partial interface NSTextInputContext { [Static] [Export ("localizedNameForInputSource:")] string LocalizedNameForInputSource (string inputSourceIdentifier); + + [Mac (14, 0)] + [Export ("textInputClientWillStartScrollingOrZooming")] + void TextInputClientWillStartScrollingOrZooming (); + + [Mac (14, 0)] + [Export ("textInputClientDidEndScrollingOrZooming")] + void TextInputClientDidEndScrollingOrZooming (); } [NoMacCatalyst] @@ -18916,6 +19200,7 @@ partial interface NSTextView : NSTextInputClient, NSTextLayoutOrientationProvide [Export ("selectedTextAttributes")] NSDictionary SelectedTextAttributes { get; set; } + [NullAllowed] [Export ("insertionPointColor")] NSColor InsertionPointColor { get; set; } @@ -19178,6 +19463,10 @@ NSTextContentType ContentType { [Mac (13, 0)] [Export ("textViewUsingTextLayoutManager:")] NSTextView Create (bool usingTextLayoutManager); + + [Mac (14, 0)] + [Export ("inlinePredictionType", ArgumentSemantic.Assign)] + NSTextInputTraitType InlinePredictionType { get; set; } } [NoMacCatalyst] @@ -19259,6 +19548,18 @@ interface NSTextInputClient { [Export ("drawsVerticallyForCharacterAtIndex:")] bool DrawsVertically (nuint charIndex); + + [Mac (14, 0)] + [Export ("unionRectInVisibleSelectedRange")] + CGRect UnionRectInVisibleSelectedRange { get; } + + [Mac (14, 0)] + [Export ("documentVisibleRect")] + CGRect DocumentVisibleRect { get; } + + [Mac (14, 0)] + [Export ("preferredTextAccessoryPlacement")] + NSTextCursorAccessoryPlacement PreferredTextAccessoryPlacement { get; } } [NoiOS] @@ -19482,6 +19783,8 @@ partial interface NSToolbar { [Export ("selectedItemIdentifier"), NullAllowed] string SelectedItemIdentifier { get; set; } + [Deprecated (PlatformName.MacOSX, 14, 0)] + [Deprecated (PlatformName.MacCatalyst, 17, 0)] [Export ("sizeMode")] NSToolbarSizeMode SizeMode { get; set; } @@ -19531,6 +19834,8 @@ partial interface NSToolbar { [Field ("NSToolbarCloudSharingItemIdentifier")] NSString NSToolbarCloudSharingItemIdentifier { get; } + [Deprecated (PlatformName.MacOSX, 14, 0, message: "'CenteredItemIdentifiers' should be used instead.")] + [Deprecated (PlatformName.MacCatalyst, 17, 0, message: "'CenteredItemIdentifiers' should be used instead.")] [MacCatalyst (13, 1)] [NullAllowed, Export ("centeredItemIdentifier")] string CenteredItemIdentifier { get; set; } @@ -19558,6 +19863,14 @@ partial interface NSToolbar { [Mac (13, 0)] [Field ("NSToolbarItemKey")] NSString NSToolbarItemKey { get; } + + [Mac (14, 0), MacCatalyst (17, 0)] + [Field ("NSToolbarToggleInspectorItemIdentifier")] + NSString NSToolbarToggleInspectorItemIdentifier { get; } + + [NoMacCatalyst, Mac (14, 0)] + [Field ("NSToolbarInspectorTrackingSeparatorItemIdentifier")] + NSString NSToolbarInspectorTrackingSeparatorItemIdentifier { get; } } [MacCatalyst (13, 1)] @@ -19730,6 +20043,10 @@ interface NSToolbarItem : NSCopying, NSMenuItemValidation, NSValidatedUserInterf [NoMacCatalyst] [Export ("possibleLabels", ArgumentSemantic.Copy)] NSSet PossibleLabels { get; set; } + + [Mac (14, 0), MacCatalyst (17, 0)] + [Export ("visible")] + bool Visible { [Bind ("isVisible")] get; } } [MacCatalyst (13, 1)] @@ -20815,6 +21132,7 @@ bool IsVisible { [Export ("runToolbarCustomizationPalette:")] void RunToolbarCustomizationPalette (NSObject sender); + [Deprecated (PlatformName.MacOSX, 14, 0)] [Export ("showsToolbarButton")] bool ShowsToolbarButton { get; set; } @@ -21098,6 +21416,10 @@ bool IsVisible { [Mac (11, 0)] [Export ("titlebarSeparatorStyle", ArgumentSemantic.Assign)] NSTitlebarSeparatorStyle TitlebarSeparatorStyle { get; set; } + + [Mac (14, 0)] + [Export ("displayLinkWithTarget:selector:")] + CADisplayLink GetDisplayLink (NSObject target, Selector selector); } [NoMacCatalyst] @@ -21919,6 +22241,10 @@ partial interface NSRunningApplication { [Export ("ownsMenuBar")] bool OwnsMenuBar { get; } + + [Mac (14, 0)] + [Export ("activateFromApplication:options:")] + bool Activate (NSRunningApplication application, NSApplicationActivationOptions options); } [NoMacCatalyst] @@ -22991,6 +23317,15 @@ void ShowCorrectionIndicatorOfType (NSCorrectionIndicatorType type, string prima [Field ("NSSpellCheckerDidChangeAutomaticTextCompletionNotification")] [Notification] NSString DidChangeAutomaticTextCompletionNotification { get; } + + [NoMacCatalyst, Mac (14, 0)] + [Static] + [Export ("automaticInlinePredictionEnabled")] + bool IsAutomaticInlinePredictionEnabled { [Bind ("isAutomaticInlinePredictionEnabled")] get; } + + [NoMacCatalyst, Mac (14, 0)] + [Field ("NSTextCheckingGenerateInlinePredictionsKey")] + NSString TextCheckingGenerateInlinePredictionsKey { get; } } partial interface NSTextViewDidChangeSelectionEventArgs { @@ -23395,6 +23730,14 @@ partial interface NSTableViewDelegate { [Export ("tableView:toolTipForCell:rect:tableColumn:row:mouseLocation:"), DelegateName ("NSTableViewToolTip"), DefaultValue ("null")] NSString GetToolTip (NSTableView tableView, NSCell cell, ref CGRect rect, [NullAllowed] NSTableColumn tableColumn, nint row, CGPoint mouseLocation); + + [NoMacCatalyst, Mac (14, 0)] + [Export ("tableView:userCanChangeVisibilityOfTableColumn:"), DelegateName ("NSTableViewUserCanChangeColumnVisibility"), DefaultValue (false)] + bool UserCanChangeVisibility (NSTableView tableView, NSTableColumn column); + + [NoMacCatalyst, Mac (14, 0)] + [Export ("tableView:userDidChangeVisibilityOfTableColumns:"), EventArgs ("NSTableViewUserCanChangeColumnsVisibility")] + void UserDidChangeVisibility (NSTableView tableView, NSTableColumn [] columns); } partial interface NSBrowser { @@ -24357,6 +24700,20 @@ interface NSAccessibility { #endif [NullAllowed, Export ("accessibilityCustomActions", ArgumentSemantic.Copy)] NSAccessibilityCustomAction [] AccessibilityCustomActions { get; set; } + + [Mac (14, 0)] +#if XAMCORE_5_0 + [Abstract] +#endif + [Export ("accessibilityUserInputLabels", ArgumentSemantic.Copy)] + string [] AccessibilityUserInputLabels { get; set; } + + [Mac (14, 0)] +#if XAMCORE_5_0 + [Abstract] +#endif + [Export ("accessibilityAttributedUserInputLabels", ArgumentSemantic.Copy)] + NSAttributedString [] AccessibilityAttributedUserInputLabels { get; set; } } [NoMacCatalyst] @@ -27030,6 +27387,11 @@ interface NSTextInputTraits { [Export ("textCompletionType", ArgumentSemantic.Assign)] NSTextInputTraitType TextCompletionType { get; set; } + + [Mac (14, 0)] + [Export ("inlinePredictionType", ArgumentSemantic.Assign)] + NSTextInputTraitType InlinePredictionType { get; set; } + } interface INSTextCheckingClient { } @@ -27418,6 +27780,166 @@ enum NSTextContentType { [Field ("NSTextContentTypeOneTimeCode")] OneTimeCode, + + [Mac (14, 0)] + [Field ("NSTextContentTypeAddressCity")] + AddressCity, + + [Mac (14, 0)] + [Field ("NSTextContentTypeAddressCityAndState")] + AddressCityAndState, + + [Mac (14, 0)] + [Field ("NSTextContentTypeAddressState")] + AddressState, + + [Mac (14, 0)] + [Field ("NSTextContentTypeBirthdate")] + Birthdate, + + [Mac (14, 0)] + [Field ("NSTextContentTypeBirthdateDay")] + BirthdateDay, + + [Mac (14, 0)] + [Field ("NSTextContentTypeBirthdateMonth")] + BirthdateMonth, + + [Mac (14, 0)] + [Field ("NSTextContentTypeBirthdateYear")] + BirthdateYear, + + [Mac (14, 0)] + [Field ("NSTextContentTypeCountryName")] + CountryName, + + [Mac (14, 0)] + [Field ("NSTextContentTypeCreditCardExpiration")] + CreditCardExpiration, + + [Mac (14, 0)] + [Field ("NSTextContentTypeCreditCardExpirationMonth")] + CreditCardExpirationMonth, + + [Mac (14, 0)] + [Field ("NSTextContentTypeCreditCardExpirationYear")] + CreditCardExpirationYear, + + [Mac (14, 0)] + [Field ("NSTextContentTypeCreditCardFamilyName")] + CreditCardFamilyName, + + [Mac (14, 0)] + [Field ("NSTextContentTypeCreditCardGivenName")] + CreditCardGivenName, + + [Mac (14, 0)] + [Field ("NSTextContentTypeCreditCardMiddleName")] + CreditCardMiddleName, + + [Mac (14, 0)] + [Field ("NSTextContentTypeCreditCardName")] + CreditCardName, + + [Mac (14, 0)] + [Field ("NSTextContentTypeCreditCardNumber")] + CreditCardNumber, + + [Mac (14, 0)] + [Field ("NSTextContentTypeCreditCardSecurityCode")] + CreditCardSecurityCode, + + [Mac (14, 0)] + [Field ("NSTextContentTypeCreditCardType")] + CreditCardType, + + [Mac (14, 0)] + [Field ("NSTextContentTypeDateTime")] + DateTime, + + [Mac (14, 0)] + [Field ("NSTextContentTypeEmailAddress")] + EmailAddress, + + [Mac (14, 0)] + [Field ("NSTextContentTypeFamilyName")] + FamilyName, + + [Mac (14, 0)] + [Field ("NSTextContentTypeFlightNumber")] + FlightNumber, + + [Mac (14, 0)] + [Field ("NSTextContentTypeFullStreetAddress")] + FullStreetAddress, + + [Mac (14, 0)] + [Field ("NSTextContentTypeGivenName")] + GivenName, + + [Mac (14, 0)] + [Field ("NSTextContentTypeJobTitle")] + JobTitle, + + [Mac (14, 0)] + [Field ("NSTextContentTypeLocation")] + Location, + + [Mac (14, 0)] + [Field ("NSTextContentTypeMiddleName")] + MiddleName, + + [Mac (14, 0)] + [Field ("NSTextContentTypeName")] + Name, + + [Mac (14, 0)] + [Field ("NSTextContentTypeNamePrefix")] + NamePrefix, + + [Mac (14, 0)] + [Field ("NSTextContentTypeNameSuffix")] + NameSuffix, + + [Mac (14, 0)] + [Field ("NSTextContentTypeNewPassword")] + NewPassword, + + [Mac (14, 0)] + [Field ("NSTextContentTypeNickname")] + Nickname, + + [Mac (14, 0)] + [Field ("NSTextContentTypeOrganizationName")] + OrganizationName, + + [Mac (14, 0)] + [Field ("NSTextContentTypePostalCode")] + PostalCode, + + [Mac (14, 0)] + [Field ("NSTextContentTypeShipmentTrackingNumber")] + ShipmentTrackingNumber, + + [Mac (14, 0)] + [Field ("NSTextContentTypeStreetAddressLine1")] + StreetAddressLine1, + + [Mac (14, 0)] + [Field ("NSTextContentTypeStreetAddressLine2")] + AddressLine2, + + [Mac (14, 0)] + [Field ("NSTextContentTypeSublocality")] + Sublocality, + + [Mac (14, 0)] + [Field ("NSTextContentTypeTelephoneNumber")] + TelephoneNumber, + + [Mac (14, 0)] + [Field ("NSTextContentTypeURL")] + Url, } [Mac (11, 0)] @@ -27594,4 +28116,103 @@ interface NSPreviewRepresentingActivityItem : NSPreviewRepresentableActivityItem NativeHandle Constructor (NSObject item, [NullAllowed] string title, [NullAllowed] NSItemProvider imageProvider, [NullAllowed] NSItemProvider iconProvider); } + [NoMacCatalyst, Mac (14, 0)] + [BaseType (typeof (NSObject))] + interface NSNibConnector : NSCoding { + [NullAllowed, Export ("source", ArgumentSemantic.Weak)] + NSObject Source { get; set; } + + [NullAllowed, Export ("destination", ArgumentSemantic.Weak)] + NSObject Destination { get; set; } + + [Export ("label")] + string Label { get; set; } + + [Export ("replaceObject:withObject:")] + void Replace (NSObject oldObject, NSObject newObject); + + [Export ("establishConnection")] + void EstablishConnection (); + } + + [NoMacCatalyst, Mac (14, 0)] + [BaseType (typeof (NSNibConnector))] + interface NSNibControlConnector { + [Export ("establishConnection")] + void EstablishConnection (); + } + + [NoMacCatalyst, Mac (14, 0)] + [BaseType (typeof (NSView))] + interface NSTextInsertionIndicator { + + [DesignatedInitializer] + [Export ("initWithFrame:")] + NativeHandle Constructor (CGRect frameRect); + + [Export ("displayMode", ArgumentSemantic.Assign)] + NSTextInsertionIndicatorDisplayMode DisplayMode { get; set; } + + [NullAllowed, Export ("color", ArgumentSemantic.Copy)] + NSColor Color { get; set; } + + [Export ("automaticModeOptions", ArgumentSemantic.Assign)] + NSTextInsertionIndicatorAutomaticModeOptions AutomaticModeOptions { get; set; } + + [NullAllowed, Export ("effectsViewInserter", ArgumentSemantic.Copy)] + Action EffectsViewInserter { get; set; } + } + + [NoMacCatalyst, Mac (14, 0)] + [BaseType (typeof (NSObject))] + [DisableDefaultCtor] + interface NSMenuItemBadge : NSCopying { + [Static] + [Export ("updatesWithCount:")] + NSMenuItemBadge CreateUpdates (nint itemCount); + + [Static] + [Export ("newItemsWithCount:")] + [return: Release] + NSMenuItemBadge CreateNewItems (nint itemCount); + + [Static] + [Export ("alertsWithCount:")] + NSMenuItemBadge CreateAlerts (nint itemCount); + + [Export ("initWithCount:type:")] + NativeHandle Constructor (nint itemCount, NSMenuItemBadgeType type); + + [Export ("initWithCount:")] + NativeHandle Constructor (nint itemCount); + + [Export ("initWithString:")] + NativeHandle Constructor (string @string); + + [Export ("itemCount")] + nint ItemCount { get; } + + [Export ("type")] + NSMenuItemBadgeType Type { get; } + + [NullAllowed, Export ("stringValue")] + string StringValue { get; } + } + + [Mac (11, 0)] + [Protocol] + interface NSAccessibilityColor { + [Abstract] + [Export ("accessibilityName")] + string AccessibilityName { get; } + } + + [NoMacCatalyst, Mac (14, 0)] + [BaseType (typeof (NSNibConnector))] + interface NSNibOutletConnector { + [NoiOS] + [Export ("establishConnection")] + void EstablishConnection (); + } + } diff --git a/src/coreanimation.cs b/src/coreanimation.cs index bfdd1384731d..c02f2e0c944b 100644 --- a/src/coreanimation.cs +++ b/src/coreanimation.cs @@ -149,7 +149,7 @@ interface CAConstraint : NSSecureCoding { NativeHandle Constructor (CAConstraintAttribute attribute, string relativeToSource, CAConstraintAttribute srcAttr, nfloat scale, nfloat offset); } - [NoMac] + [Mac (14, 0)] [MacCatalyst (13, 1)] [BaseType (typeof (NSObject))] interface CADisplayLink { @@ -178,10 +178,11 @@ interface CADisplayLink { [Export ("paused")] bool Paused { [Bind ("isPaused")] get; set; } - [Deprecated (PlatformName.iOS, 10, 0, message: "Use 'PreferredFramesPerSecond' property.")] - [Deprecated (PlatformName.TvOS, 10, 0, message: "Use 'PreferredFramesPerSecond' property.")] - [Deprecated (PlatformName.WatchOS, 3, 0, message: "Use 'PreferredFramesPerSecond' property.")] - [Deprecated (PlatformName.MacCatalyst, 13, 1, message: "Use 'PreferredFramesPerSecond' property.")] + [Obsoleted (PlatformName.iOS, 10, 0, message: "Use 'PreferredFramesPerSecond' property.")] + [Obsoleted (PlatformName.TvOS, 10, 0, message: "Use 'PreferredFramesPerSecond' property.")] + [Obsoleted (PlatformName.WatchOS, 3, 0, message: "Use 'PreferredFramesPerSecond' property.")] + [Obsoleted (PlatformName.MacCatalyst, 13, 1, message: "Use 'PreferredFramesPerSecond' property.")] + [NoMac] [Export ("frameInterval")] nint FrameInterval { get; set; } @@ -197,6 +198,7 @@ interface CADisplayLink { [Deprecated (PlatformName.WatchOS, 8, 0, message: "Use 'PreferredFrameRateRange' property.")] [MacCatalyst (13, 1)] [Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use 'PreferredFrameRateRange' property.")] + [NoMac] [Export ("preferredFramesPerSecond")] nint PreferredFramesPerSecond { get; set; } diff --git a/src/xkit.cs b/src/xkit.cs index 22f791789515..4608454b48a5 100644 --- a/src/xkit.cs +++ b/src/xkit.cs @@ -3626,6 +3626,16 @@ interface NSTextLayoutFragment : NSSecureCoding { [Export ("frameForTextAttachmentAtLocation:")] CGRect GetFrameForTextAttachment (INSTextLocation location); + + [TV (17, 0), Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)] + [Export ("textLineFragmentForVerticalOffset:requiresExactMatch:")] + [return: NullAllowed] + NSTextLineFragment GetTextLineFragment (nfloat verticalOffset, bool requiresExactMatch); + + [TV (17, 0), Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)] + [Export ("textLineFragmentForTextLocation:isUpstreamAffinity:")] + [return: NullAllowed] + NSTextLineFragment GetTextLineFragment (INSTextLocation textLocation, bool isUpstreamAffinity); } [TV (15, 0), NoWatch, Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)] @@ -4376,6 +4386,10 @@ interface NSAttributedStringDocumentAttributeKey { [iOS (13, 0), TV (13, 0), Watch (6, 0)] [MacCatalyst (13, 1)] NSString CocoaVersionDocumentAttribute { get; } + + [Field ("NSDefaultFontExcludedDocumentAttribute")] + [NoWatch, NoTV, Mac (14, 0), NoiOS, MacCatalyst (17, 0)] + NSString DefaultFontExcludedDocumentAttribute { get; } } [Static] @@ -4427,11 +4441,10 @@ interface NSAttributedStringDocumentReadingOptionKey { [Field ("NSSourceTextScalingDocumentOption")] NSString NSSourceTextScalingDocumentOption { get; } - // This field is really inside WebKit - [NoWatch, NoTV] - [iOS (13, 0)] - [MacCatalyst (13, 1)] + // comes from webkit + [Mac (10, 15), iOS (13, 0), MacCatalyst (13, 1), NoTV, NoWatch] [Field ("NSReadAccessURLDocumentOption", "WebKit")] NSString NSReadAccessUrlDocumentOption { get; } + } } diff --git a/tests/cecil-tests/ConstructorTest.cs b/tests/cecil-tests/ConstructorTest.cs index e0c27cb0b6c0..b928fb59d8ae 100644 --- a/tests/cecil-tests/ConstructorTest.cs +++ b/tests/cecil-tests/ConstructorTest.cs @@ -1,4 +1,5 @@ using System; +using System.Linq; using System.Collections.Generic; using Mono.Cecil; @@ -29,10 +30,20 @@ static bool IsMatch (MethodDefinition ctor, params (string Namespace, string Nam } static MethodDefinition? GetConstructor (TypeDefinition type, params (string Namespace, string Name) [] parameterTypes) + => GetConstructor (type, out _, parameterTypes); + + static MethodDefinition? GetConstructor (TypeDefinition type, out string? selectorName, params (string Namespace, string Name) [] parameterTypes) { + selectorName = null; foreach (var ctor in type.Methods) { - if (IsMatch (ctor, parameterTypes)) + if (IsMatch (ctor, parameterTypes)) { + // retrieve the selectorName if possible + var exportAttr = ctor.CustomAttributes.FirstOrDefault (attr => attr.AttributeType.Is ("Foundation", "ExportAttribute")); + if (exportAttr is not null) { + selectorName = (string) exportAttr.ConstructorArguments [0].Value!; + } return ctor; + } } return null; } @@ -270,12 +281,12 @@ public void INativeObjectIntPtrConstructorDoesNotOwnHandle (ApplePlatform platfo var isNSObjectSubclass = SubclassesNSObject (type); // Find the constructors constructors we care about - var intptrCtor = GetConstructor (type, ("System", "IntPtr")); + var intptrCtor = GetConstructor (type, out var intptrCtorSelector, ("System", "IntPtr")); var intptrBoolCtor = GetConstructor (type, ("System", "IntPtr"), ("System", "Boolean")); var nativeHandleCtor = GetConstructor (type, ("ObjCRuntime", "NativeHandle")); var nativeHandleBoolCtor = GetConstructor (type, ("ObjCRuntime", "NativeHandle"), ("System", "Boolean")); - if (intptrCtor is not null) { + if (intptrCtor is not null && intptrCtorSelector == "init:") { if (IsVisible (intptrCtor)) { var msg = $"{type}: (IntPtr) constructor found. It should not exist."; Console.WriteLine ($"{GetLocation (intptrCtor)}{msg}"); diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-UIKit.todo b/tests/xtro-sharpie/api-annotations-dotnet/iOS-UIKit.todo index 17d5ef20fc9b..f8d89f958e29 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-UIKit.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-UIKit.todo @@ -191,8 +191,6 @@ !missing-selector! NSObject::setAutomationElements: not bound !missing-selector! NSObject::setAutomationElementsBlock: not bound !missing-selector! NSObject::setIsAccessibilityElementBlock: not bound -!missing-selector! NSTextLayoutFragment::textLineFragmentForTextLocation:isUpstreamAffinity: not bound -!missing-selector! NSTextLayoutFragment::textLineFragmentForVerticalOffset:requiresExactMatch: not bound !missing-selector! UIApplication::activateSceneSessionForRequest:errorHandler: not bound !missing-selector! UIBarButtonItem::isSymbolAnimationEnabled not bound !missing-selector! UIBarButtonItem::setSymbolAnimationEnabled: not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.ignore index 83179e77b62b..a87c34b5d252 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.ignore @@ -1687,3 +1687,9 @@ !missing-type! NSPDFPanel not bound !missing-type! NSPICTImageRep not bound !missing-type! NSPersistentDocument not bound + +# we cannot add a breaking change until xamr 5 +!incorrect-protocol-member! NSAccessibility::accessibilityAttributedUserInputLabels is REQUIRED and should be abstract +!incorrect-protocol-member! NSAccessibility::accessibilityUserInputLabels is REQUIRED and should be abstract +!incorrect-protocol-member! NSAccessibility::setAccessibilityAttributedUserInputLabels: is REQUIRED and should be abstract +!incorrect-protocol-member! NSAccessibility::setAccessibilityUserInputLabels: is REQUIRED and should be abstract diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.todo b/tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.todo deleted file mode 100644 index efbaeda9a4d3..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.todo +++ /dev/null @@ -1,198 +0,0 @@ -!missing-protocol! NSAccessibilityColor not bound -!missing-protocol-conformance! NSColor should conform to NSAccessibilityColor (defined in 'NSAccessibilityColorConformance' category) -!missing-selector! +NSColorWell::colorWellWithStyle: not bound -!missing-selector! +NSImage::imageWithSymbolName:bundle:variableValue: not bound -!missing-selector! NSNibConnector::destination not bound -!missing-selector! NSNibConnector::establishConnection not bound -!missing-selector! NSNibConnector::label not bound -!missing-selector! NSNibConnector::replaceObject:withObject: not bound -!missing-selector! NSNibConnector::setDestination: not bound -!missing-selector! NSNibConnector::setLabel: not bound -!missing-selector! NSNibConnector::setSource: not bound -!missing-selector! NSNibConnector::source not bound -!missing-selector! NSNibControlConnector::establishConnection not bound -!missing-selector! NSNibOutletConnector::establishConnection not bound -!missing-selector! NSToolbarItem::isVisible not bound -!missing-type! NSNibConnector not bound -!missing-type! NSNibControlConnector not bound -!missing-type! NSNibOutletConnector not bound -!deprecated-attribute-missing! NSColorWell::isBordered missing a [Deprecated] attribute -!deprecated-attribute-missing! NSColorWell::setBordered: missing a [Deprecated] attribute -!deprecated-attribute-missing! NSImage::lockFocus missing a [Deprecated] attribute -!deprecated-attribute-missing! NSImage::lockFocusFlipped: missing a [Deprecated] attribute -!deprecated-attribute-missing! NSImage::unlockFocus missing a [Deprecated] attribute -!deprecated-attribute-missing! NSToolbar::centeredItemIdentifier missing a [Deprecated] attribute -!deprecated-attribute-missing! NSToolbar::setCenteredItemIdentifier: missing a [Deprecated] attribute -!deprecated-attribute-missing! NSToolbar::setSizeMode: missing a [Deprecated] attribute -!deprecated-attribute-missing! NSToolbar::sizeMode missing a [Deprecated] attribute -!deprecated-attribute-missing! NSWindow::setShowsToolbarButton: missing a [Deprecated] attribute -!deprecated-attribute-missing! NSWindow::showsToolbarButton missing a [Deprecated] attribute -!deprecated-attribute-missing! NSApplication::activateIgnoringOtherApps: missing a [Deprecated] attribute -!deprecated-attribute-missing! NSPageLayout::beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo: missing a [Deprecated] attribute -!deprecated-attribute-missing! NSPrintPanel::beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo: missing a [Deprecated] attribute -!missing-enum! NSImageDynamicRange not bound -!missing-enum! NSMenuItemBadgeType not bound -!missing-enum! NSMenuPresentationStyle not bound -!missing-enum! NSMenuSelectionMode not bound -!missing-enum! NSPageLayoutResult not bound -!missing-enum! NSPrintPanelResult not bound -!missing-enum! NSTextCursorAccessoryPlacement not bound -!missing-enum! NSTextInsertionIndicatorAutomaticModeOptions not bound -!missing-enum! NSTextInsertionIndicatorDisplayMode not bound -!missing-enum-value! NSBezelStyle native value NSBezelStyleAutomatic = 0 not bound -!missing-enum-value! NSBezierPathElement native value NSBezierPathElementQuadraticCurveTo = 4 not bound -!missing-enum-value! NSSplitViewItemBehavior native value NSSplitViewItemBehaviorInspector = 3 not bound -!missing-field! NSDefaultFontExcludedDocumentAttribute not bound -!missing-field! NSSpellCheckerDidChangeAutomaticInlinePredictionNotification not bound -!missing-field! NSTextContentTypeAddressCity not bound -!missing-field! NSTextContentTypeAddressCityAndState not bound -!missing-field! NSTextContentTypeAddressState not bound -!missing-field! NSTextContentTypeBirthdate not bound -!missing-field! NSTextContentTypeBirthdateDay not bound -!missing-field! NSTextContentTypeBirthdateMonth not bound -!missing-field! NSTextContentTypeBirthdateYear not bound -!missing-field! NSTextContentTypeCountryName not bound -!missing-field! NSTextContentTypeCreditCardExpiration not bound -!missing-field! NSTextContentTypeCreditCardExpirationMonth not bound -!missing-field! NSTextContentTypeCreditCardExpirationYear not bound -!missing-field! NSTextContentTypeCreditCardFamilyName not bound -!missing-field! NSTextContentTypeCreditCardGivenName not bound -!missing-field! NSTextContentTypeCreditCardMiddleName not bound -!missing-field! NSTextContentTypeCreditCardName not bound -!missing-field! NSTextContentTypeCreditCardNumber not bound -!missing-field! NSTextContentTypeCreditCardSecurityCode not bound -!missing-field! NSTextContentTypeCreditCardType not bound -!missing-field! NSTextContentTypeDateTime not bound -!missing-field! NSTextContentTypeEmailAddress not bound -!missing-field! NSTextContentTypeFamilyName not bound -!missing-field! NSTextContentTypeFlightNumber not bound -!missing-field! NSTextContentTypeFullStreetAddress not bound -!missing-field! NSTextContentTypeGivenName not bound -!missing-field! NSTextContentTypeJobTitle not bound -!missing-field! NSTextContentTypeLocation not bound -!missing-field! NSTextContentTypeMiddleName not bound -!missing-field! NSTextContentTypeName not bound -!missing-field! NSTextContentTypeNamePrefix not bound -!missing-field! NSTextContentTypeNameSuffix not bound -!missing-field! NSTextContentTypeNewPassword not bound -!missing-field! NSTextContentTypeNickname not bound -!missing-field! NSTextContentTypeOrganizationName not bound -!missing-field! NSTextContentTypePostalCode not bound -!missing-field! NSTextContentTypeShipmentTrackingNumber not bound -!missing-field! NSTextContentTypeStreetAddressLine1 not bound -!missing-field! NSTextContentTypeStreetAddressLine2 not bound -!missing-field! NSTextContentTypeSublocality not bound -!missing-field! NSTextContentTypeTelephoneNumber not bound -!missing-field! NSTextContentTypeURL not bound -!missing-field! NSToolbarInspectorTrackingSeparatorItemIdentifier not bound -!missing-field! NSToolbarToggleInspectorItemIdentifier not bound -!missing-null-allowed! 'System.Void AppKit.NSTextView::set_InsertionPointColor(AppKit.NSColor)' is missing an [NullAllowed] on parameter #0 -!missing-protocol-conformance! NSCursor should conform to NSSecureCoding -!missing-protocol-member! NSAccessibility::accessibilityAttributedUserInputLabels not found -!missing-protocol-member! NSAccessibility::accessibilityUserInputLabels not found -!missing-protocol-member! NSAccessibility::setAccessibilityAttributedUserInputLabels: not found -!missing-protocol-member! NSAccessibility::setAccessibilityUserInputLabels: not found -!missing-protocol-member! NSOutlineViewDelegate::outlineView:userCanChangeVisibilityOfTableColumn: not found -!missing-protocol-member! NSOutlineViewDelegate::outlineView:userDidChangeVisibilityOfTableColumns: not found -!missing-protocol-member! NSTableViewDelegate::tableView:userCanChangeVisibilityOfTableColumn: not found -!missing-protocol-member! NSTableViewDelegate::tableView:userDidChangeVisibilityOfTableColumns: not found -!missing-protocol-member! NSTextInputClient::documentVisibleRect not found -!missing-protocol-member! NSTextInputClient::preferredTextAccessoryPlacement not found -!missing-protocol-member! NSTextInputClient::unionRectInVisibleSelectedRange not found -!missing-protocol-member! NSTextInputTraits::inlinePredictionType not found -!missing-protocol-member! NSTextInputTraits::setInlinePredictionType: not found -!missing-selector! +NSBezierPath::bezierPathWithCGPath: not bound -!missing-selector! +NSColor::quaternarySystemFillColor not bound -!missing-selector! +NSColor::quinaryLabelColor not bound -!missing-selector! +NSColor::quinarySystemFillColor not bound -!missing-selector! +NSColor::secondarySystemFillColor not bound -!missing-selector! +NSColor::systemFillColor not bound -!missing-selector! +NSColor::tertiarySystemFillColor not bound -!missing-selector! +NSColor::textInsertionPointColor not bound -!missing-selector! +NSImageView::defaultPreferredImageDynamicRange not bound -!missing-selector! +NSImageView::setDefaultPreferredImageDynamicRange: not bound -!missing-selector! +NSMenu::paletteMenuWithColors:titles:selectionHandler: not bound -!missing-selector! +NSMenu::paletteMenuWithColors:titles:templateImage:selectionHandler: not bound -!missing-selector! +NSMenuItem::sectionHeaderWithTitle: not bound -!missing-selector! +NSMenuItemBadge::alertsWithCount: not bound -!missing-selector! +NSMenuItemBadge::newItemsWithCount: not bound -!missing-selector! +NSMenuItemBadge::updatesWithCount: not bound -!missing-selector! +NSSpellChecker::isAutomaticInlinePredictionEnabled not bound -!missing-selector! +NSSplitViewItem::inspectorWithViewController: not bound -!missing-selector! NSApplication::activate not bound -!missing-selector! NSApplication::yieldActivationToApplication: not bound -!missing-selector! NSApplication::yieldActivationToApplicationWithBundleIdentifier: not bound -!missing-selector! NSBezierPath::CGPath not bound -!missing-selector! NSBezierPath::curveToPoint:controlPoint: not bound -!missing-selector! NSBezierPath::relativeCurveToPoint:controlPoint: not bound -!missing-selector! NSBezierPath::setCGPath: not bound -!missing-selector! NSColorWell::setSupportsAlpha: not bound -!missing-selector! NSColorWell::supportsAlpha not bound -!missing-selector! NSImage::imageWithLocale: not bound -!missing-selector! NSImage::locale not bound -!missing-selector! NSImageView::addSymbolEffect: not bound -!missing-selector! NSImageView::addSymbolEffect:options: not bound -!missing-selector! NSImageView::addSymbolEffect:options:animated: not bound -!missing-selector! NSImageView::imageDynamicRange not bound -!missing-selector! NSImageView::preferredImageDynamicRange not bound -!missing-selector! NSImageView::removeAllSymbolEffects not bound -!missing-selector! NSImageView::removeAllSymbolEffectsWithOptions: not bound -!missing-selector! NSImageView::removeAllSymbolEffectsWithOptions:animated: not bound -!missing-selector! NSImageView::removeSymbolEffectOfType: not bound -!missing-selector! NSImageView::removeSymbolEffectOfType:options: not bound -!missing-selector! NSImageView::removeSymbolEffectOfType:options:animated: not bound -!missing-selector! NSImageView::setPreferredImageDynamicRange: not bound -!missing-selector! NSImageView::setSymbolImage:withContentTransition: not bound -!missing-selector! NSImageView::setSymbolImage:withContentTransition:options: not bound -!missing-selector! NSMenu::presentationStyle not bound -!missing-selector! NSMenu::selectedItems not bound -!missing-selector! NSMenu::selectionMode not bound -!missing-selector! NSMenu::setPresentationStyle: not bound -!missing-selector! NSMenu::setSelectedItems: not bound -!missing-selector! NSMenu::setSelectionMode: not bound -!missing-selector! NSMenuItem::badge not bound -!missing-selector! NSMenuItem::isSectionHeader not bound -!missing-selector! NSMenuItem::setBadge: not bound -!missing-selector! NSMenuItemBadge::initWithCount: not bound -!missing-selector! NSMenuItemBadge::initWithCount:type: not bound -!missing-selector! NSMenuItemBadge::initWithString: not bound -!missing-selector! NSMenuItemBadge::itemCount not bound -!missing-selector! NSMenuItemBadge::stringValue not bound -!missing-selector! NSMenuItemBadge::type not bound -!missing-selector! NSPageLayout::beginSheetUsingPrintInfo:onWindow:completionHandler: not bound -!missing-selector! NSPopover::hasFullSizeContent not bound -!missing-selector! NSPopover::setHasFullSizeContent: not bound -!missing-selector! NSPopover::showRelativeToToolbarItem: not bound -!missing-selector! NSPrintPanel::beginSheetUsingPrintInfo:onWindow:completionHandler: not bound -!missing-selector! NSProgressIndicator::observedProgress not bound -!missing-selector! NSProgressIndicator::setObservedProgress: not bound -!missing-selector! NSRunningApplication::activateFromApplication:options: not bound -!missing-selector! NSSavePanel::identifier not bound -!missing-selector! NSSavePanel::setIdentifier: not bound -!missing-selector! NSScreen::displayLinkWithTarget:selector: not bound -!missing-selector! NSSplitViewController::toggleInspector: not bound -!missing-selector! NSSplitViewItem::canCollapseFromWindowResize not bound -!missing-selector! NSSplitViewItem::setCanCollapseFromWindowResize: not bound -!missing-selector! NSTextInputContext::textInputClientDidEndScrollingOrZooming not bound -!missing-selector! NSTextInputContext::textInputClientWillStartScrollingOrZooming not bound -!missing-selector! NSTextInsertionIndicator::automaticModeOptions not bound -!missing-selector! NSTextInsertionIndicator::color not bound -!missing-selector! NSTextInsertionIndicator::displayMode not bound -!missing-selector! NSTextInsertionIndicator::effectsViewInserter not bound -!missing-selector! NSTextInsertionIndicator::setAutomaticModeOptions: not bound -!missing-selector! NSTextInsertionIndicator::setColor: not bound -!missing-selector! NSTextInsertionIndicator::setDisplayMode: not bound -!missing-selector! NSTextInsertionIndicator::setEffectsViewInserter: not bound -!missing-selector! NSTextLayoutFragment::textLineFragmentForTextLocation:isUpstreamAffinity: not bound -!missing-selector! NSTextLayoutFragment::textLineFragmentForVerticalOffset:requiresExactMatch: not bound -!missing-selector! NSTextView::inlinePredictionType not bound -!missing-selector! NSTextView::setInlinePredictionType: not bound -!missing-selector! NSView::displayLinkWithTarget:selector: not bound -!missing-selector! NSViewController::loadViewIfNeeded not bound -!missing-selector! NSViewController::presentViewController:asPopoverRelativeToRect:ofView:preferredEdge:behavior:hasFullSizeContent: not bound -!missing-selector! NSViewController::viewIfLoaded not bound -!missing-selector! NSWindow::displayLinkWithTarget:selector: not bound -!missing-type! NSMenuItemBadge not bound -!missing-type! NSTextInsertionIndicator not bound -!missing-field! NSTextCheckingGenerateInlinePredictionsKey not bound -!missing-selector! NSSpellChecker::showInlinePredictionForCandidates:client: not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreAnimation.todo b/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreAnimation.todo index 760c5ee7d557..683025a1bf9a 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreAnimation.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreAnimation.todo @@ -1,16 +1,6 @@ !missing-protocol! CAMetalDisplayLinkDelegate not bound !missing-selector! +CAEDRMetadata::HLGMetadataWithAmbientViewingEnvironment: not bound !missing-selector! +CATransaction::batch not bound -!missing-selector! CADisplayLink::addToRunLoop:forMode: not bound -!missing-selector! CADisplayLink::duration not bound -!missing-selector! CADisplayLink::invalidate not bound -!missing-selector! CADisplayLink::isPaused not bound -!missing-selector! CADisplayLink::preferredFrameRateRange not bound -!missing-selector! CADisplayLink::removeFromRunLoop:forMode: not bound -!missing-selector! CADisplayLink::setPaused: not bound -!missing-selector! CADisplayLink::setPreferredFrameRateRange: not bound -!missing-selector! CADisplayLink::targetTimestamp not bound -!missing-selector! CADisplayLink::timestamp not bound !missing-selector! CALayer::setWantsExtendedDynamicRangeContent: not bound !missing-selector! CALayer::wantsExtendedDynamicRangeContent not bound !missing-selector! CAMetalDisplayLink::addToRunLoop:forMode: not bound @@ -33,6 +23,5 @@ !missing-selector! CASpringAnimation::initWithPerceptualDuration:bounce: not bound !missing-selector! CASpringAnimation::perceptualDuration not bound !missing-selector! CASpringAnimation::setAllowsOverdamping: not bound -!missing-type! CADisplayLink not bound !missing-type! CAMetalDisplayLink not bound !missing-type! CAMetalDisplayLinkUpdate not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-UIKit.todo b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-UIKit.todo index 3501a0589f21..60db8cb22438 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-UIKit.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-UIKit.todo @@ -179,8 +179,6 @@ !missing-selector! NSObject::setAutomationElements: not bound !missing-selector! NSObject::setAutomationElementsBlock: not bound !missing-selector! NSObject::setIsAccessibilityElementBlock: not bound -!missing-selector! NSTextLayoutFragment::textLineFragmentForTextLocation:isUpstreamAffinity: not bound -!missing-selector! NSTextLayoutFragment::textLineFragmentForVerticalOffset:requiresExactMatch: not bound !missing-selector! UIApplication::activateSceneSessionForRequest:errorHandler: not bound !missing-selector! UIBarButtonItem::changesSelectionAsPrimaryAction not bound !missing-selector! UIBarButtonItem::isSymbolAnimationEnabled not bound diff --git a/tests/xtro-sharpie/iOS-UIKit.todo b/tests/xtro-sharpie/iOS-UIKit.todo index 17d5ef20fc9b..f8d89f958e29 100644 --- a/tests/xtro-sharpie/iOS-UIKit.todo +++ b/tests/xtro-sharpie/iOS-UIKit.todo @@ -191,8 +191,6 @@ !missing-selector! NSObject::setAutomationElements: not bound !missing-selector! NSObject::setAutomationElementsBlock: not bound !missing-selector! NSObject::setIsAccessibilityElementBlock: not bound -!missing-selector! NSTextLayoutFragment::textLineFragmentForTextLocation:isUpstreamAffinity: not bound -!missing-selector! NSTextLayoutFragment::textLineFragmentForVerticalOffset:requiresExactMatch: not bound !missing-selector! UIApplication::activateSceneSessionForRequest:errorHandler: not bound !missing-selector! UIBarButtonItem::isSymbolAnimationEnabled not bound !missing-selector! UIBarButtonItem::setSymbolAnimationEnabled: not bound diff --git a/tests/xtro-sharpie/macOS-AppKit.ignore b/tests/xtro-sharpie/macOS-AppKit.ignore index 6d59ee2eb1d4..9c51f0add5b8 100644 --- a/tests/xtro-sharpie/macOS-AppKit.ignore +++ b/tests/xtro-sharpie/macOS-AppKit.ignore @@ -1265,14 +1265,9 @@ !extra-enum-value! Managed value 2048 for NSWindowStyle.Unscaled not found in native headers # Will be deprecated in a future release -!deprecated-attribute-missing! NSColorWell::isBordered missing a [Deprecated] attribute -!deprecated-attribute-missing! NSColorWell::setBordered: missing a [Deprecated] attribute -!deprecated-attribute-missing! NSImage::lockFocus missing a [Deprecated] attribute -!deprecated-attribute-missing! NSImage::lockFocusFlipped: missing a [Deprecated] attribute -!deprecated-attribute-missing! NSImage::unlockFocus missing a [Deprecated] attribute -!deprecated-attribute-missing! NSToolbar::centeredItemIdentifier missing a [Deprecated] attribute -!deprecated-attribute-missing! NSToolbar::setCenteredItemIdentifier: missing a [Deprecated] attribute -!deprecated-attribute-missing! NSToolbar::setSizeMode: missing a [Deprecated] attribute -!deprecated-attribute-missing! NSToolbar::sizeMode missing a [Deprecated] attribute -!deprecated-attribute-missing! NSWindow::setShowsToolbarButton: missing a [Deprecated] attribute -!deprecated-attribute-missing! NSWindow::showsToolbarButton missing a [Deprecated] attribute + +# we cannot add a breaking change until xamr 5 +!incorrect-protocol-member! NSAccessibility::accessibilityAttributedUserInputLabels is REQUIRED and should be abstract +!incorrect-protocol-member! NSAccessibility::accessibilityUserInputLabels is REQUIRED and should be abstract +!incorrect-protocol-member! NSAccessibility::setAccessibilityAttributedUserInputLabels: is REQUIRED and should be abstract +!incorrect-protocol-member! NSAccessibility::setAccessibilityUserInputLabels: is REQUIRED and should be abstract diff --git a/tests/xtro-sharpie/macOS-AppKit.todo b/tests/xtro-sharpie/macOS-AppKit.todo deleted file mode 100644 index b9ff0fcd4984..000000000000 --- a/tests/xtro-sharpie/macOS-AppKit.todo +++ /dev/null @@ -1,187 +0,0 @@ -!missing-protocol! NSAccessibilityColor not bound -!missing-protocol-conformance! NSColor should conform to NSAccessibilityColor (defined in 'NSAccessibilityColorConformance' category) -!missing-selector! +NSColorWell::colorWellWithStyle: not bound -!missing-selector! +NSImage::imageWithSymbolName:bundle:variableValue: not bound -!missing-selector! NSNibConnector::destination not bound -!missing-selector! NSNibConnector::establishConnection not bound -!missing-selector! NSNibConnector::label not bound -!missing-selector! NSNibConnector::replaceObject:withObject: not bound -!missing-selector! NSNibConnector::setDestination: not bound -!missing-selector! NSNibConnector::setLabel: not bound -!missing-selector! NSNibConnector::setSource: not bound -!missing-selector! NSNibConnector::source not bound -!missing-selector! NSNibControlConnector::establishConnection not bound -!missing-selector! NSNibOutletConnector::establishConnection not bound -!missing-selector! NSToolbarItem::isVisible not bound -!missing-type! NSNibConnector not bound -!missing-type! NSNibControlConnector not bound -!missing-type! NSNibOutletConnector not bound -!deprecated-attribute-missing! NSApplication::activateIgnoringOtherApps: missing a [Deprecated] attribute -!deprecated-attribute-missing! NSPageLayout::beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo: missing a [Deprecated] attribute -!deprecated-attribute-missing! NSPrintPanel::beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo: missing a [Deprecated] attribute -!missing-enum! NSImageDynamicRange not bound -!missing-enum! NSMenuItemBadgeType not bound -!missing-enum! NSMenuPresentationStyle not bound -!missing-enum! NSMenuSelectionMode not bound -!missing-enum! NSPageLayoutResult not bound -!missing-enum! NSPrintPanelResult not bound -!missing-enum! NSTextCursorAccessoryPlacement not bound -!missing-enum! NSTextInsertionIndicatorAutomaticModeOptions not bound -!missing-enum! NSTextInsertionIndicatorDisplayMode not bound -!missing-enum-value! NSBezelStyle native value NSBezelStyleAutomatic = 0 not bound -!missing-enum-value! NSBezierPathElement native value NSBezierPathElementQuadraticCurveTo = 4 not bound -!missing-enum-value! NSSplitViewItemBehavior native value NSSplitViewItemBehaviorInspector = 3 not bound -!missing-field! NSDefaultFontExcludedDocumentAttribute not bound -!missing-field! NSSpellCheckerDidChangeAutomaticInlinePredictionNotification not bound -!missing-field! NSTextContentTypeAddressCity not bound -!missing-field! NSTextContentTypeAddressCityAndState not bound -!missing-field! NSTextContentTypeAddressState not bound -!missing-field! NSTextContentTypeBirthdate not bound -!missing-field! NSTextContentTypeBirthdateDay not bound -!missing-field! NSTextContentTypeBirthdateMonth not bound -!missing-field! NSTextContentTypeBirthdateYear not bound -!missing-field! NSTextContentTypeCountryName not bound -!missing-field! NSTextContentTypeCreditCardExpiration not bound -!missing-field! NSTextContentTypeCreditCardExpirationMonth not bound -!missing-field! NSTextContentTypeCreditCardExpirationYear not bound -!missing-field! NSTextContentTypeCreditCardFamilyName not bound -!missing-field! NSTextContentTypeCreditCardGivenName not bound -!missing-field! NSTextContentTypeCreditCardMiddleName not bound -!missing-field! NSTextContentTypeCreditCardName not bound -!missing-field! NSTextContentTypeCreditCardNumber not bound -!missing-field! NSTextContentTypeCreditCardSecurityCode not bound -!missing-field! NSTextContentTypeCreditCardType not bound -!missing-field! NSTextContentTypeDateTime not bound -!missing-field! NSTextContentTypeEmailAddress not bound -!missing-field! NSTextContentTypeFamilyName not bound -!missing-field! NSTextContentTypeFlightNumber not bound -!missing-field! NSTextContentTypeFullStreetAddress not bound -!missing-field! NSTextContentTypeGivenName not bound -!missing-field! NSTextContentTypeJobTitle not bound -!missing-field! NSTextContentTypeLocation not bound -!missing-field! NSTextContentTypeMiddleName not bound -!missing-field! NSTextContentTypeName not bound -!missing-field! NSTextContentTypeNamePrefix not bound -!missing-field! NSTextContentTypeNameSuffix not bound -!missing-field! NSTextContentTypeNewPassword not bound -!missing-field! NSTextContentTypeNickname not bound -!missing-field! NSTextContentTypeOrganizationName not bound -!missing-field! NSTextContentTypePostalCode not bound -!missing-field! NSTextContentTypeShipmentTrackingNumber not bound -!missing-field! NSTextContentTypeStreetAddressLine1 not bound -!missing-field! NSTextContentTypeStreetAddressLine2 not bound -!missing-field! NSTextContentTypeSublocality not bound -!missing-field! NSTextContentTypeTelephoneNumber not bound -!missing-field! NSTextContentTypeURL not bound -!missing-field! NSToolbarInspectorTrackingSeparatorItemIdentifier not bound -!missing-field! NSToolbarToggleInspectorItemIdentifier not bound -!missing-null-allowed! 'System.Void AppKit.NSTextView::set_InsertionPointColor(AppKit.NSColor)' is missing an [NullAllowed] on parameter #0 -!missing-protocol-conformance! NSCursor should conform to NSSecureCoding -!missing-protocol-member! NSAccessibility::accessibilityAttributedUserInputLabels not found -!missing-protocol-member! NSAccessibility::accessibilityUserInputLabels not found -!missing-protocol-member! NSAccessibility::setAccessibilityAttributedUserInputLabels: not found -!missing-protocol-member! NSAccessibility::setAccessibilityUserInputLabels: not found -!missing-protocol-member! NSOutlineViewDelegate::outlineView:userCanChangeVisibilityOfTableColumn: not found -!missing-protocol-member! NSOutlineViewDelegate::outlineView:userDidChangeVisibilityOfTableColumns: not found -!missing-protocol-member! NSTableViewDelegate::tableView:userCanChangeVisibilityOfTableColumn: not found -!missing-protocol-member! NSTableViewDelegate::tableView:userDidChangeVisibilityOfTableColumns: not found -!missing-protocol-member! NSTextInputClient::documentVisibleRect not found -!missing-protocol-member! NSTextInputClient::preferredTextAccessoryPlacement not found -!missing-protocol-member! NSTextInputClient::unionRectInVisibleSelectedRange not found -!missing-protocol-member! NSTextInputTraits::inlinePredictionType not found -!missing-protocol-member! NSTextInputTraits::setInlinePredictionType: not found -!missing-selector! +NSBezierPath::bezierPathWithCGPath: not bound -!missing-selector! +NSColor::quaternarySystemFillColor not bound -!missing-selector! +NSColor::quinaryLabelColor not bound -!missing-selector! +NSColor::quinarySystemFillColor not bound -!missing-selector! +NSColor::secondarySystemFillColor not bound -!missing-selector! +NSColor::systemFillColor not bound -!missing-selector! +NSColor::tertiarySystemFillColor not bound -!missing-selector! +NSColor::textInsertionPointColor not bound -!missing-selector! +NSImageView::defaultPreferredImageDynamicRange not bound -!missing-selector! +NSImageView::setDefaultPreferredImageDynamicRange: not bound -!missing-selector! +NSMenu::paletteMenuWithColors:titles:selectionHandler: not bound -!missing-selector! +NSMenu::paletteMenuWithColors:titles:templateImage:selectionHandler: not bound -!missing-selector! +NSMenuItem::sectionHeaderWithTitle: not bound -!missing-selector! +NSMenuItemBadge::alertsWithCount: not bound -!missing-selector! +NSMenuItemBadge::newItemsWithCount: not bound -!missing-selector! +NSMenuItemBadge::updatesWithCount: not bound -!missing-selector! +NSSpellChecker::isAutomaticInlinePredictionEnabled not bound -!missing-selector! +NSSplitViewItem::inspectorWithViewController: not bound -!missing-selector! NSApplication::activate not bound -!missing-selector! NSApplication::yieldActivationToApplication: not bound -!missing-selector! NSApplication::yieldActivationToApplicationWithBundleIdentifier: not bound -!missing-selector! NSBezierPath::CGPath not bound -!missing-selector! NSBezierPath::curveToPoint:controlPoint: not bound -!missing-selector! NSBezierPath::relativeCurveToPoint:controlPoint: not bound -!missing-selector! NSBezierPath::setCGPath: not bound -!missing-selector! NSColorWell::setSupportsAlpha: not bound -!missing-selector! NSColorWell::supportsAlpha not bound -!missing-selector! NSImage::imageWithLocale: not bound -!missing-selector! NSImage::locale not bound -!missing-selector! NSImageView::addSymbolEffect: not bound -!missing-selector! NSImageView::addSymbolEffect:options: not bound -!missing-selector! NSImageView::addSymbolEffect:options:animated: not bound -!missing-selector! NSImageView::imageDynamicRange not bound -!missing-selector! NSImageView::preferredImageDynamicRange not bound -!missing-selector! NSImageView::removeAllSymbolEffects not bound -!missing-selector! NSImageView::removeAllSymbolEffectsWithOptions: not bound -!missing-selector! NSImageView::removeAllSymbolEffectsWithOptions:animated: not bound -!missing-selector! NSImageView::removeSymbolEffectOfType: not bound -!missing-selector! NSImageView::removeSymbolEffectOfType:options: not bound -!missing-selector! NSImageView::removeSymbolEffectOfType:options:animated: not bound -!missing-selector! NSImageView::setPreferredImageDynamicRange: not bound -!missing-selector! NSImageView::setSymbolImage:withContentTransition: not bound -!missing-selector! NSImageView::setSymbolImage:withContentTransition:options: not bound -!missing-selector! NSMenu::presentationStyle not bound -!missing-selector! NSMenu::selectedItems not bound -!missing-selector! NSMenu::selectionMode not bound -!missing-selector! NSMenu::setPresentationStyle: not bound -!missing-selector! NSMenu::setSelectedItems: not bound -!missing-selector! NSMenu::setSelectionMode: not bound -!missing-selector! NSMenuItem::badge not bound -!missing-selector! NSMenuItem::isSectionHeader not bound -!missing-selector! NSMenuItem::setBadge: not bound -!missing-selector! NSMenuItemBadge::initWithCount: not bound -!missing-selector! NSMenuItemBadge::initWithCount:type: not bound -!missing-selector! NSMenuItemBadge::initWithString: not bound -!missing-selector! NSMenuItemBadge::itemCount not bound -!missing-selector! NSMenuItemBadge::stringValue not bound -!missing-selector! NSMenuItemBadge::type not bound -!missing-selector! NSPageLayout::beginSheetUsingPrintInfo:onWindow:completionHandler: not bound -!missing-selector! NSPopover::hasFullSizeContent not bound -!missing-selector! NSPopover::setHasFullSizeContent: not bound -!missing-selector! NSPopover::showRelativeToToolbarItem: not bound -!missing-selector! NSPrintPanel::beginSheetUsingPrintInfo:onWindow:completionHandler: not bound -!missing-selector! NSProgressIndicator::observedProgress not bound -!missing-selector! NSProgressIndicator::setObservedProgress: not bound -!missing-selector! NSRunningApplication::activateFromApplication:options: not bound -!missing-selector! NSSavePanel::identifier not bound -!missing-selector! NSSavePanel::setIdentifier: not bound -!missing-selector! NSScreen::displayLinkWithTarget:selector: not bound -!missing-selector! NSSplitViewController::toggleInspector: not bound -!missing-selector! NSSplitViewItem::canCollapseFromWindowResize not bound -!missing-selector! NSSplitViewItem::setCanCollapseFromWindowResize: not bound -!missing-selector! NSTextInputContext::textInputClientDidEndScrollingOrZooming not bound -!missing-selector! NSTextInputContext::textInputClientWillStartScrollingOrZooming not bound -!missing-selector! NSTextInsertionIndicator::automaticModeOptions not bound -!missing-selector! NSTextInsertionIndicator::color not bound -!missing-selector! NSTextInsertionIndicator::displayMode not bound -!missing-selector! NSTextInsertionIndicator::effectsViewInserter not bound -!missing-selector! NSTextInsertionIndicator::setAutomaticModeOptions: not bound -!missing-selector! NSTextInsertionIndicator::setColor: not bound -!missing-selector! NSTextInsertionIndicator::setDisplayMode: not bound -!missing-selector! NSTextInsertionIndicator::setEffectsViewInserter: not bound -!missing-selector! NSTextLayoutFragment::textLineFragmentForTextLocation:isUpstreamAffinity: not bound -!missing-selector! NSTextLayoutFragment::textLineFragmentForVerticalOffset:requiresExactMatch: not bound -!missing-selector! NSTextView::inlinePredictionType not bound -!missing-selector! NSTextView::setInlinePredictionType: not bound -!missing-selector! NSView::displayLinkWithTarget:selector: not bound -!missing-selector! NSViewController::loadViewIfNeeded not bound -!missing-selector! NSViewController::presentViewController:asPopoverRelativeToRect:ofView:preferredEdge:behavior:hasFullSizeContent: not bound -!missing-selector! NSViewController::viewIfLoaded not bound -!missing-selector! NSWindow::displayLinkWithTarget:selector: not bound -!missing-type! NSMenuItemBadge not bound -!missing-type! NSTextInsertionIndicator not bound -!missing-field! NSTextCheckingGenerateInlinePredictionsKey not bound -!missing-selector! NSSpellChecker::showInlinePredictionForCandidates:client: not bound diff --git a/tests/xtro-sharpie/macOS-CoreAnimation.todo b/tests/xtro-sharpie/macOS-CoreAnimation.todo index 760c5ee7d557..683025a1bf9a 100644 --- a/tests/xtro-sharpie/macOS-CoreAnimation.todo +++ b/tests/xtro-sharpie/macOS-CoreAnimation.todo @@ -1,16 +1,6 @@ !missing-protocol! CAMetalDisplayLinkDelegate not bound !missing-selector! +CAEDRMetadata::HLGMetadataWithAmbientViewingEnvironment: not bound !missing-selector! +CATransaction::batch not bound -!missing-selector! CADisplayLink::addToRunLoop:forMode: not bound -!missing-selector! CADisplayLink::duration not bound -!missing-selector! CADisplayLink::invalidate not bound -!missing-selector! CADisplayLink::isPaused not bound -!missing-selector! CADisplayLink::preferredFrameRateRange not bound -!missing-selector! CADisplayLink::removeFromRunLoop:forMode: not bound -!missing-selector! CADisplayLink::setPaused: not bound -!missing-selector! CADisplayLink::setPreferredFrameRateRange: not bound -!missing-selector! CADisplayLink::targetTimestamp not bound -!missing-selector! CADisplayLink::timestamp not bound !missing-selector! CALayer::setWantsExtendedDynamicRangeContent: not bound !missing-selector! CALayer::wantsExtendedDynamicRangeContent not bound !missing-selector! CAMetalDisplayLink::addToRunLoop:forMode: not bound @@ -33,6 +23,5 @@ !missing-selector! CASpringAnimation::initWithPerceptualDuration:bounce: not bound !missing-selector! CASpringAnimation::perceptualDuration not bound !missing-selector! CASpringAnimation::setAllowsOverdamping: not bound -!missing-type! CADisplayLink not bound !missing-type! CAMetalDisplayLink not bound !missing-type! CAMetalDisplayLinkUpdate not bound diff --git a/tests/xtro-sharpie/tvOS-UIKit.todo b/tests/xtro-sharpie/tvOS-UIKit.todo index 3501a0589f21..60db8cb22438 100644 --- a/tests/xtro-sharpie/tvOS-UIKit.todo +++ b/tests/xtro-sharpie/tvOS-UIKit.todo @@ -179,8 +179,6 @@ !missing-selector! NSObject::setAutomationElements: not bound !missing-selector! NSObject::setAutomationElementsBlock: not bound !missing-selector! NSObject::setIsAccessibilityElementBlock: not bound -!missing-selector! NSTextLayoutFragment::textLineFragmentForTextLocation:isUpstreamAffinity: not bound -!missing-selector! NSTextLayoutFragment::textLineFragmentForVerticalOffset:requiresExactMatch: not bound !missing-selector! UIApplication::activateSceneSessionForRequest:errorHandler: not bound !missing-selector! UIBarButtonItem::changesSelectionAsPrimaryAction not bound !missing-selector! UIBarButtonItem::isSymbolAnimationEnabled not bound