[AppKit] Remove the NS[Open|Save]Panel constructors in XAMCORE_5_0. Fixes #6474. (#21346)

These constructors haven't worked since macOS 10.14 (see #6474), so just
remove them (when we can make breaking changes).

Fixes https://github.com/xamarin/xamarin-macios/issues/6474.
This commit is contained in:
Rolf Bjarne Kvinge 2024-10-03 11:13:43 +02:00 коммит произвёл GitHub
Родитель f6501e922f
Коммит 260b12a99d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -9307,10 +9307,13 @@ namespace AppKit {
[ForcedType] // different type used inside a sandbox
NSOpenPanel OpenPanel { get; }
#if !XAMCORE_5_0
[EditorBrowsable (EditorBrowsableState.Never)]
[Advice ("You must use 'OpenPanel' method if the application is sandboxed.")]
[Deprecated (PlatformName.MacOSX, 10, 15, message: "All open panels now run out-of-process, use 'OpenPanel' method instead")]
[Export ("init")]
NativeHandle Constructor ();
#endif
[Export ("URLs")]
NSUrl [] Urls { get; }
@ -13652,10 +13655,13 @@ namespace AppKit {
[ForcedType] // different type used inside a sandbox
NSSavePanel SavePanel { get; }
#if !XAMCORE_5_0
[Advice ("You must use 'SavePanel' method if the application is sandboxed.")]
[Deprecated (PlatformName.MacOSX, 10, 15, message: "All save panels now run out-of-process, use 'SavePanel' method instead")]
[EditorBrowsable (EditorBrowsableState.Never)]
[Export ("init")]
NativeHandle Constructor ();
#endif
[Export ("URL")]
NSUrl Url { get; }

Просмотреть файл

@ -24342,7 +24342,6 @@ M:AppKit.NSOpenGLPixelFormat.#ctor(System.Object[])
M:AppKit.NSOpenGLPixelFormat.#ctor(System.UInt32[])
M:AppKit.NSOpenGLPixelFormat.EncodeTo(Foundation.NSCoder)
M:AppKit.NSOpenGLView.#ctor(CoreGraphics.CGRect)
M:AppKit.NSOpenPanel.#ctor
M:AppKit.NSOpenPanel.BeginSheet(System.String,System.String,System.String[],AppKit.NSWindow,System.Action)
M:AppKit.NSOpenPanel.BeginSheet(System.String,System.String,System.String[],AppKit.NSWindow)
M:AppKit.NSOpenSaveExpandingEventArgs.#ctor(System.Boolean)
@ -24687,7 +24686,6 @@ M:AppKit.NSRulerMarkerClientViewDelegation.RulerViewLocation(AppKit.NSView,AppKi
M:AppKit.NSRulerMarkerClientViewDelegation.RulerViewPoint(AppKit.NSView,AppKit.NSRulerView,System.Runtime.InteropServices.NFloat)
M:AppKit.NSRulerView.#ctor(CoreGraphics.CGRect)
M:AppKit.NSRulerView.Dispose(System.Boolean)
M:AppKit.NSSavePanel.#ctor
M:AppKit.NSSavePanel.add_DidChangeToDirectory(System.EventHandler{AppKit.NSOpenSavePanelUrlEventArgs})
M:AppKit.NSSavePanel.add_DidSelectType(System.EventHandler{AppKit.NSopenSavePanelUTTypeEventArgs})
M:AppKit.NSSavePanel.add_DirectoryDidChange(System.EventHandler{AppKit.NSOpenSaveFilenameEventArgs})