Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created May 29, 2024 16:30
Show Gist options
  • Save vs-mobiletools-engineering-service2/3e0a564db468c887024445d27d398cc5 to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/3e0a564db468c887024445d27d398cc5 to your computer and use it in GitHub Desktop.
generator-diff/generator.diff
diff --git a/old/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs b/new/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs
index 814173e..0dab0ff 100644
--- a/old/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs
+++ b/new/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs
@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("bgen")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+eaae1ae6ebb352d58aa373f5e02bfdb15c4c2cbd")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+f1ea2f1ca82cf6d3f9622b9e885b0faa9c23bf9a")]
[assembly: System.Reflection.AssemblyProductAttribute("bgen")]
[assembly: System.Reflection.AssemblyTitleAttribute("bgen")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
diff --git a/old/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json b/new/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json
index cbfe12a..5261709 100644
--- a/old/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json
+++ b/new/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json
@@ -1 +1 @@
-{"documents":{"/Users/builder/azdo/_work/2/a/change-detection/tmp/src/xamarin-macios/*":"https://raw.githubusercontent.com/xamarin/xamarin-macios/eaae1ae6ebb352d58aa373f5e02bfdb15c4c2cbd/*","/Users/builder/azdo/_work/2/a/change-detection/tmp/src/xamarin-macios/external/api-tools/*":"https://raw.githubusercontent.com/xamarin/api-tools/1fbbe003a141231439c08b23989d3dc910bd6182/*","/Users/builder/azdo/_work/2/a/change-detection/tmp/src/xamarin-macios/external/macios-binaries/*":"https://raw.githubusercontent.com/xamarin/macios-binaries/7813391e75d7373ee073ef2d5716e3c607c8636a/*","/Users/builder/azdo/_work/2/a/change-detection/tmp/src/xamarin-macios/external/MonoTouch.Dialog/*":"https://raw.githubusercontent.com/xamarin/MonoTouch.Dialog/77b3337dbbc9e3e2f1b06dab3d37d2822488b0b3/*","/Users/builder/azdo/_work/2/a/change-detection/tmp/src/xamarin-macios/external/opentk/*":"https://raw.githubusercontent.com/mono/opentk/396bc90c7ac2e7ce442840a5e8bd91e5e79b381e/*","/Users/builder/azdo/_work/2/a/change-detection/tmp/src/xamarin-macios/external/Touch.Unit/*":"https://raw.githubusercontent.com/xamarin/Touch.Unit/92a072683b69b2f61f235a7a249c2c7f261236d4/*","/Users/builder/azdo/_work/2/a/change-detection/tmp/src/xamarin-macios/external/Xamarin.MacDev/*":"https://raw.githubusercontent.com/xamarin/Xamarin.MacDev/4cb9dc263251f8c8eac41b95a857f37025974599/*"}}
\ No newline at end of file
+{"documents":{"/Users/builder/azdo/_work/2/s/xamarin-macios/*":"https://raw.githubusercontent.com/xamarin/xamarin-macios/f1ea2f1ca82cf6d3f9622b9e885b0faa9c23bf9a/*","/Users/builder/azdo/_work/2/s/xamarin-macios/external/api-tools/*":"https://raw.githubusercontent.com/xamarin/api-tools/1fbbe003a141231439c08b23989d3dc910bd6182/*","/Users/builder/azdo/_work/2/s/xamarin-macios/external/macios-binaries/*":"https://raw.githubusercontent.com/xamarin/macios-binaries/7813391e75d7373ee073ef2d5716e3c607c8636a/*","/Users/builder/azdo/_work/2/s/xamarin-macios/external/MonoTouch.Dialog/*":"https://raw.githubusercontent.com/xamarin/MonoTouch.Dialog/77b3337dbbc9e3e2f1b06dab3d37d2822488b0b3/*","/Users/builder/azdo/_work/2/s/xamarin-macios/external/opentk/*":"https://raw.githubusercontent.com/mono/opentk/396bc90c7ac2e7ce442840a5e8bd91e5e79b381e/*","/Users/builder/azdo/_work/2/s/xamarin-macios/external/Touch.Unit/*":"https://raw.githubusercontent.com/xamarin/Touch.Unit/92a072683b69b2f61f235a7a249c2c7f261236d4/*","/Users/builder/azdo/_work/2/s/xamarin-macios/external/Xamarin.MacDev/*":"https://raw.githubusercontent.com/xamarin/Xamarin.MacDev/4cb9dc263251f8c8eac41b95a857f37025974599/*"}}
\ No newline at end of file
diff --git a/old/dotnet/ios/SourceLink.json b/new/dotnet/ios/SourceLink.json
index 3802cdf..6975de4 100644
--- a/old/dotnet/ios/SourceLink.json
+++ b/new/dotnet/ios/SourceLink.json
@@ -1,5 +1,5 @@
{
"documents": {
- "/Users/builder/azdo/_work/2/a/change-detection/tmp/src/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/eaae1ae6ebb352d58aa373f5e02bfdb15c4c2cbd/src*"
+ "/Users/builder/azdo/_work/2/s/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/f1ea2f1ca82cf6d3f9622b9e885b0faa9c23bf9a/src*"
}
}
diff --git a/old/dotnet/maccatalyst/SourceLink.json b/new/dotnet/maccatalyst/SourceLink.json
index 3802cdf..6975de4 100644
--- a/old/dotnet/maccatalyst/SourceLink.json
+++ b/new/dotnet/maccatalyst/SourceLink.json
@@ -1,5 +1,5 @@
{
"documents": {
- "/Users/builder/azdo/_work/2/a/change-detection/tmp/src/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/eaae1ae6ebb352d58aa373f5e02bfdb15c4c2cbd/src*"
+ "/Users/builder/azdo/_work/2/s/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/f1ea2f1ca82cf6d3f9622b9e885b0faa9c23bf9a/src*"
}
}
diff --git a/old/dotnet/macos/SourceLink.json b/new/dotnet/macos/SourceLink.json
index 3802cdf..6975de4 100644
--- a/old/dotnet/macos/SourceLink.json
+++ b/new/dotnet/macos/SourceLink.json
@@ -1,5 +1,5 @@
{
"documents": {
- "/Users/builder/azdo/_work/2/a/change-detection/tmp/src/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/eaae1ae6ebb352d58aa373f5e02bfdb15c4c2cbd/src*"
+ "/Users/builder/azdo/_work/2/s/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/f1ea2f1ca82cf6d3f9622b9e885b0faa9c23bf9a/src*"
}
}
diff --git a/old/dotnet/macos/doc/Microsoft.macOS.xml b/new/dotnet/macos/doc/Microsoft.macOS.xml
index 3ea9c38..6f89b06 100644
--- a/old/dotnet/macos/doc/Microsoft.macOS.xml
+++ b/new/dotnet/macos/doc/Microsoft.macOS.xml
@@ -52549,12 +52549,56 @@
</para>
</remarks>
</member>
+ <member name="T:AppKit.NSPasteboardNameExtensions">
+ <summary>Extension methods for the <see cref="T:AppKit.NSPasteboardName" /> enumeration.</summary>
+ </member>
+ <member name="M:AppKit.NSPasteboardNameExtensions.GetConstant(AppKit.NSPasteboardName)">
+ <summary>Retrieves the <see cref="T:Foundation.NSString" /> constant that describes <paramref name="self" />.</summary>
+ <param name="self">The instance on which this method operates.</param>
+ </member>
+ <member name="M:AppKit.NSPasteboardNameExtensions.GetValue(Foundation.NSString)">
+ <summary>Retrieves the <see cref="T:AppKit.NSPasteboardName" /> value named by <paramref name="constant" />.</summary>
+ <param name="constant">The name of the constant to retrieve.</param>
+ </member>
+ <member name="T:AppKit.NSPasteboardTypeExtensions">
+ <summary>Extension methods for the <see cref="T:AppKit.NSPasteboardType" /> enumeration.</summary>
+ </member>
+ <member name="M:AppKit.NSPasteboardTypeExtensions.GetConstant(AppKit.NSPasteboardType)">
+ <summary>Retrieves the <see cref="T:Foundation.NSString" /> constant that describes <paramref name="self" />.</summary>
+ <param name="self">The instance on which this method operates.</param>
+ </member>
+ <member name="M:AppKit.NSPasteboardTypeExtensions.GetValue(Foundation.NSString)">
+ <summary>Retrieves the <see cref="T:AppKit.NSPasteboardType" /> value named by <paramref name="constant" />.</summary>
+ <param name="constant">The name of the constant to retrieve.</param>
+ </member>
+ <member name="T:AppKit.NSPasteboardTypeFindPanelSearchOptionKeyExtensions">
+ <summary>Extension methods for the <see cref="T:AppKit.NSPasteboardTypeFindPanelSearchOptionKey" /> enumeration.</summary>
+ </member>
+ <member name="M:AppKit.NSPasteboardTypeFindPanelSearchOptionKeyExtensions.GetConstant(AppKit.NSPasteboardTypeFindPanelSearchOptionKey)">
+ <summary>Retrieves the <see cref="T:Foundation.NSString" /> constant that describes <paramref name="self" />.</summary>
+ <param name="self">The instance on which this method operates.</param>
+ </member>
+ <member name="M:AppKit.NSPasteboardTypeFindPanelSearchOptionKeyExtensions.GetValue(Foundation.NSString)">
+ <summary>Retrieves the <see cref="T:AppKit.NSPasteboardTypeFindPanelSearchOptionKey" /> value named by <paramref name="constant" />.</summary>
+ <param name="constant">The name of the constant to retrieve.</param>
+ </member>
<member name="T:AppKit.NSPasteboardTypeOwner_Extensions">
<summary>Extension methods to the <see cref="T:AppKit.INSPasteboardTypeOwner" /> interface to support all the methods from the NSPasteboardTypeOwner protocol.</summary>
<remarks>
<para>The extension methods for <see cref="T:AppKit.INSPasteboardTypeOwner" /> interface allow developers to treat instances of the interface as having all the optional methods of the original NSPasteboardTypeOwner protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.</para>
</remarks>
</member>
+ <member name="T:AppKit.NSPasteboardTypeTextFinderOptionKeyExtensions">
+ <summary>Extension methods for the <see cref="T:AppKit.NSPasteboardTypeTextFinderOptionKey" /> enumeration.</summary>
+ </member>
+ <member name="M:AppKit.NSPasteboardTypeTextFinderOptionKeyExtensions.GetConstant(AppKit.NSPasteboardTypeTextFinderOptionKey)">
+ <summary>Retrieves the <see cref="T:Foundation.NSString" /> constant that describes <paramref name="self" />.</summary>
+ <param name="self">The instance on which this method operates.</param>
+ </member>
+ <member name="M:AppKit.NSPasteboardTypeTextFinderOptionKeyExtensions.GetValue(Foundation.NSString)">
+ <summary>Retrieves the <see cref="T:AppKit.NSPasteboardTypeTextFinderOptionKey" /> value named by <paramref name="constant" />.</summary>
+ <param name="constant">The name of the constant to retrieve.</param>
+ </member>
<member name="T:AppKit.NSPasteboardWriting_Extensions">
<summary>Extension methods to the <see cref="T:AppKit.INSPasteboardWriting" /> interface to support all the methods from the NSPasteboardWriting protocol.</summary>
<remarks>
diff --git a/old/dotnet/macos/generated-sources/AppKit/NSColor.g.cs b/new/dotnet/macos/generated-sources/AppKit/NSColor.g.cs
index a5ee107..ad0c9df 100644
--- a/old/dotnet/macos/generated-sources/AppKit/NSColor.g.cs
+++ b/new/dotnet/macos/generated-sources/AppKit/NSColor.g.cs
@@ -295,6 +295,9 @@ namespace AppKit {
const string selInitWithCoder_X = "initWithCoder:";
static readonly NativeHandle selInitWithCoder_XHandle = Selector.GetHandle ("initWithCoder:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithPasteboardPropertyList_OfType_X = "initWithPasteboardPropertyList:ofType:";
+ static readonly NativeHandle selInitWithPasteboardPropertyList_OfType_XHandle = Selector.GetHandle ("initWithPasteboardPropertyList:ofType:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selKeyboardFocusIndicatorColorX = "keyboardFocusIndicatorColor";
static readonly NativeHandle selKeyboardFocusIndicatorColorXHandle = Selector.GetHandle ("keyboardFocusIndicatorColor");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
diff --git a/old/dotnet/macos/generated-sources/AppKit/NSFilePromiseReceiver.g.cs b/new/dotnet/macos/generated-sources/AppKit/NSFilePromiseReceiver.g.cs
index 407bbc7..9e77ffb 100644
--- a/old/dotnet/macos/generated-sources/AppKit/NSFilePromiseReceiver.g.cs
+++ b/new/dotnet/macos/generated-sources/AppKit/NSFilePromiseReceiver.g.cs
@@ -55,6 +55,9 @@ namespace AppKit {
const string selFileTypesX = "fileTypes";
static readonly NativeHandle selFileTypesXHandle = Selector.GetHandle ("fileTypes");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithPasteboardPropertyList_OfType_X = "initWithPasteboardPropertyList:ofType:";
+ static readonly NativeHandle selInitWithPasteboardPropertyList_OfType_XHandle = Selector.GetHandle ("initWithPasteboardPropertyList:ofType:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selReadableDraggedTypesX = "readableDraggedTypes";
static readonly NativeHandle selReadableDraggedTypesXHandle = Selector.GetHandle ("readableDraggedTypes");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
diff --git a/old/dotnet/macos/generated-sources/AppKit/NSImage.g.cs b/new/dotnet/macos/generated-sources/AppKit/NSImage.g.cs
index 6500cf0..958219a 100644
--- a/old/dotnet/macos/generated-sources/AppKit/NSImage.g.cs
+++ b/new/dotnet/macos/generated-sources/AppKit/NSImage.g.cs
@@ -184,6 +184,9 @@ namespace AppKit {
const string selInitWithPasteboard_X = "initWithPasteboard:";
static readonly NativeHandle selInitWithPasteboard_XHandle = Selector.GetHandle ("initWithPasteboard:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithPasteboardPropertyList_OfType_X = "initWithPasteboardPropertyList:ofType:";
+ static readonly NativeHandle selInitWithPasteboardPropertyList_OfType_XHandle = Selector.GetHandle ("initWithPasteboardPropertyList:ofType:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selInitWithSize_X = "initWithSize:";
static readonly NativeHandle selInitWithSize_XHandle = Selector.GetHandle ("initWithSize:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
diff --git a/old/dotnet/macos/generated-sources/AppKit/NSPasteboard.g.cs b/new/dotnet/macos/generated-sources/AppKit/NSPasteboard.g.cs
index dc7e328..66eb9d8 100644
--- a/old/dotnet/macos/generated-sources/AppKit/NSPasteboard.g.cs
+++ b/new/dotnet/macos/generated-sources/AppKit/NSPasteboard.g.cs
@@ -581,6 +581,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSFileContentsType;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSFileContentsPboardType", "AppKit")]
public static NSString NSFileContentsType {
get {
@@ -719,6 +721,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardNameDrag;
+ [Obsolete ("Use the 'NSPasteboardName' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardNameDrag", "AppKit")]
public static NSString NSPasteboardNameDrag {
get {
@@ -729,6 +733,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardNameFind;
+ [Obsolete ("Use the 'NSPasteboardName' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardNameFind", "AppKit")]
public static NSString NSPasteboardNameFind {
get {
@@ -739,6 +745,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardNameFont;
+ [Obsolete ("Use the 'NSPasteboardName' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardNameFont", "AppKit")]
public static NSString NSPasteboardNameFont {
get {
@@ -749,6 +757,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardNameGeneral;
+ [Obsolete ("Use the 'NSPasteboardName' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardNameGeneral", "AppKit")]
public static NSString NSPasteboardNameGeneral {
get {
@@ -759,6 +769,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardNameRuler;
+ [Obsolete ("Use the 'NSPasteboardName' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardNameRuler", "AppKit")]
public static NSString NSPasteboardNameRuler {
get {
@@ -769,6 +781,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeColor;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeColor", "AppKit")]
public static NSString NSPasteboardTypeColor {
get {
@@ -779,6 +793,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeFileUrl;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeFileURL", "AppKit")]
public static NSString NSPasteboardTypeFileUrl {
get {
@@ -805,6 +821,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeFont;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeFont", "AppKit")]
public static NSString NSPasteboardTypeFont {
get {
@@ -815,6 +833,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeHTML;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeHTML", "AppKit")]
public static NSString NSPasteboardTypeHTML {
get {
@@ -825,6 +845,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeMultipleTextSelection;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeMultipleTextSelection", "AppKit")]
public static NSString NSPasteboardTypeMultipleTextSelection {
get {
@@ -835,6 +857,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypePDF;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypePDF", "AppKit")]
public static NSString NSPasteboardTypePDF {
get {
@@ -845,6 +869,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypePNG;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypePNG", "AppKit")]
public static NSString NSPasteboardTypePNG {
get {
@@ -855,6 +881,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeRTF;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeRTF", "AppKit")]
public static NSString NSPasteboardTypeRTF {
get {
@@ -865,6 +893,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeRTFD;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeRTFD", "AppKit")]
public static NSString NSPasteboardTypeRTFD {
get {
@@ -875,6 +905,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeRuler;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeRuler", "AppKit")]
public static NSString NSPasteboardTypeRuler {
get {
@@ -885,6 +917,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeSound;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeSound", "AppKit")]
public static NSString NSPasteboardTypeSound {
get {
@@ -895,6 +929,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeString;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeString", "AppKit")]
public static NSString NSPasteboardTypeString {
get {
@@ -905,6 +941,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeTIFF;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeTIFF", "AppKit")]
public static NSString NSPasteboardTypeTIFF {
get {
@@ -915,6 +953,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeTabularText;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeTabularText", "AppKit")]
public static NSString NSPasteboardTypeTabularText {
get {
@@ -925,6 +965,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeUrl;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeURL", "AppKit")]
public static NSString NSPasteboardTypeUrl {
get {
@@ -952,7 +994,13 @@ namespace AppKit {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPictType;
[Field ("NSPICTPboardType", "AppKit")]
+ [ObsoletedOSPlatform ("macos10.6", "Do not use, the PICT format was discontinued a long time ago.")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [SupportedOSPlatform ("macos")]
public static NSString NSPictType {
+ [ObsoletedOSPlatform ("macos10.6", "Do not use, the PICT format was discontinued a long time ago.")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [SupportedOSPlatform ("macos")]
get {
if (_NSPictType is null)
_NSPictType = Dlfcn.GetStringConstant (Libraries.AppKit.Handle, "NSPICTPboardType")!;
@@ -1121,6 +1169,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _PasteboardTypeTextFinderOptions;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeTextFinderOptions", "AppKit")]
public static NSString PasteboardTypeTextFinderOptions {
get {
diff --git a/old/dotnet/macos/generated-sources/AppKit/NSPasteboardItem.g.cs b/new/dotnet/macos/generated-sources/AppKit/NSPasteboardItem.g.cs
index 2aa5ebe..447083d 100644
--- a/old/dotnet/macos/generated-sources/AppKit/NSPasteboardItem.g.cs
+++ b/new/dotnet/macos/generated-sources/AppKit/NSPasteboardItem.g.cs
@@ -58,6 +58,9 @@ namespace AppKit {
const string selDataForType_X = "dataForType:";
static readonly NativeHandle selDataForType_XHandle = Selector.GetHandle ("dataForType:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithPasteboardPropertyList_OfType_X = "initWithPasteboardPropertyList:ofType:";
+ static readonly NativeHandle selInitWithPasteboardPropertyList_OfType_XHandle = Selector.GetHandle ("initWithPasteboardPropertyList:ofType:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selPasteboardPropertyListForType_X = "pasteboardPropertyListForType:";
static readonly NativeHandle selPasteboardPropertyListForType_XHandle = Selector.GetHandle ("pasteboardPropertyListForType:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
diff --git a/new/dotnet/macos/generated-sources/AppKit/NSPasteboardName.g.cs b/new/dotnet/macos/generated-sources/AppKit/NSPasteboardName.g.cs
new file mode 100644
index 0000000..c1e8453
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/AppKit/NSPasteboardName.g.cs
@@ -0,0 +1,140 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace AppKit {
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [SupportedOSPlatform ("macos")]
+ public enum NSPasteboardName : int {
+ General = 0,
+ Font = 1,
+ Ruler = 2,
+ Find = 3,
+ Drag = 4,
+ }
+ /// <summary>Extension methods for the <see cref="global::AppKit.NSPasteboardName" /> enumeration.</summary>
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [SupportedOSPlatform ("macos")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class NSPasteboardNameExtensions {
+ static IntPtr[] values = new IntPtr [5];
+ [Field ("NSPasteboardNameGeneral", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardNameGeneral {
+ get {
+ fixed (IntPtr *storage = &values [0])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardNameGeneral", storage);
+ }
+ }
+ [Field ("NSPasteboardNameFont", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardNameFont {
+ get {
+ fixed (IntPtr *storage = &values [1])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardNameFont", storage);
+ }
+ }
+ [Field ("NSPasteboardNameRuler", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardNameRuler {
+ get {
+ fixed (IntPtr *storage = &values [2])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardNameRuler", storage);
+ }
+ }
+ [Field ("NSPasteboardNameFind", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardNameFind {
+ get {
+ fixed (IntPtr *storage = &values [3])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardNameFind", storage);
+ }
+ }
+ [Field ("NSPasteboardNameDrag", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardNameDrag {
+ get {
+ fixed (IntPtr *storage = &values [4])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardNameDrag", storage);
+ }
+ }
+ /// <summary>Retrieves the <see cref="global::Foundation.NSString" /> constant that describes <paramref name="self" />.</summary>
+ /// <param name="self">The instance on which this method operates.</param>
+ public static NSString? GetConstant (this NSPasteboardName self)
+ {
+ IntPtr ptr = IntPtr.Zero;
+ switch ((int) self) {
+ case 0: // NSPasteboardName.General
+ ptr = NSPasteboardNameGeneral;
+ break;
+ case 1: // NSPasteboardName.Font
+ ptr = NSPasteboardNameFont;
+ break;
+ case 2: // NSPasteboardName.Ruler
+ ptr = NSPasteboardNameRuler;
+ break;
+ case 3: // NSPasteboardName.Find
+ ptr = NSPasteboardNameFind;
+ break;
+ case 4: // NSPasteboardName.Drag
+ ptr = NSPasteboardNameDrag;
+ break;
+ }
+ return (NSString?) Runtime.GetNSObject (ptr);
+ }
+ /// <summary>Retrieves the <see cref="global::AppKit.NSPasteboardName" /> value named by <paramref name="constant" />.</summary>
+ /// <param name="constant">The name of the constant to retrieve.</param>
+ public static NSPasteboardName GetValue (NSString constant)
+ {
+ if (constant is null)
+ throw new ArgumentNullException (nameof (constant));
+ if (constant.IsEqualTo (NSPasteboardNameGeneral))
+ return NSPasteboardName.General;
+ if (constant.IsEqualTo (NSPasteboardNameFont))
+ return NSPasteboardName.Font;
+ if (constant.IsEqualTo (NSPasteboardNameRuler))
+ return NSPasteboardName.Ruler;
+ if (constant.IsEqualTo (NSPasteboardNameFind))
+ return NSPasteboardName.Find;
+ if (constant.IsEqualTo (NSPasteboardNameDrag))
+ return NSPasteboardName.Drag;
+ throw new NotSupportedException ($"{constant} has no associated enum value on this platform.");
+ }
+ }
+}
diff --git a/old/dotnet/macos/generated-sources/AppKit/NSPasteboardReading.g.cs b/new/dotnet/macos/generated-sources/AppKit/NSPasteboardReading.g.cs
index 2cafc11..227d29a 100644
--- a/old/dotnet/macos/generated-sources/AppKit/NSPasteboardReading.g.cs
+++ b/new/dotnet/macos/generated-sources/AppKit/NSPasteboardReading.g.cs
@@ -53,6 +53,17 @@ namespace AppKit {
[ProtocolMember (IsRequired = false, IsProperty = false, IsStatic = true, Name = "GetReadingOptionsForType", Selector = "readingOptionsForType:pasteboard:", ReturnType = typeof (NSPasteboardReadingOptions), ParameterType = new Type [] { typeof (string), typeof (NSPasteboard) }, ParameterByRef = new bool [] { false, false })]
public partial interface INSPasteboardReading : INativeObject, IDisposable
{
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static T? CreateInstance<T> (NSObject propertyList, NSString type) where T: NSObject, INSPasteboardReading
+ {
+ global::AppKit.NSApplication.EnsureUIThread ();
+ var propertyList__handle__ = propertyList!.GetNonNullHandle (nameof (propertyList));
+ var type__handle__ = type!.GetNonNullHandle (nameof (type));
+ IntPtr __handle__;
+ __handle__ = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (Class.GetHandle (typeof (T)), Selector.GetHandle ("alloc"));
+ __handle__ = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (__handle__, Selector.GetHandle ("initWithPasteboardPropertyList:ofType:"), propertyList__handle__, type__handle__);
+ return global::ObjCRuntime.Runtime.GetINativeObject<T> (__handle__, true);
+ }
}
internal unsafe sealed class NSPasteboardReadingWrapper : BaseWrapper, INSPasteboardReading {
[Preserve (Conditional = true)]
diff --git a/new/dotnet/macos/generated-sources/AppKit/NSPasteboardType.g.cs b/new/dotnet/macos/generated-sources/AppKit/NSPasteboardType.g.cs
new file mode 100644
index 0000000..2c44d21
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/AppKit/NSPasteboardType.g.cs
@@ -0,0 +1,326 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace AppKit {
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [SupportedOSPlatform ("macos")]
+ public enum NSPasteboardType : int {
+ FileContents = 0,
+ String = 1,
+ Pdf = 2,
+ Tiff = 3,
+ Png = 4,
+ Rtf = 5,
+ Rtfd = 6,
+ Html = 7,
+ TabularText = 8,
+ Font = 9,
+ Ruler = 10,
+ Color = 11,
+ Sound = 12,
+ MultipleTextSelection = 13,
+ TextFinderOptions = 14,
+ Url = 15,
+ FileUrl = 16,
+ [SupportedOSPlatform ("macos13.0")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ CollaborationMetadata = 17,
+ FindPanelSearchOptions = 18,
+ }
+ /// <summary>Extension methods for the <see cref="global::AppKit.NSPasteboardType" /> enumeration.</summary>
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [SupportedOSPlatform ("macos")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class NSPasteboardTypeExtensions {
+ static IntPtr[] values = new IntPtr [19];
+ [Field ("NSFileContentsPboardType", "AppKit")]
+ internal unsafe static IntPtr NSFileContentsPboardType {
+ get {
+ fixed (IntPtr *storage = &values [0])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSFileContentsPboardType", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeString", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeString {
+ get {
+ fixed (IntPtr *storage = &values [1])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeString", storage);
+ }
+ }
+ [Field ("NSPasteboardTypePDF", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypePDF {
+ get {
+ fixed (IntPtr *storage = &values [2])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypePDF", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeTIFF", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeTIFF {
+ get {
+ fixed (IntPtr *storage = &values [3])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeTIFF", storage);
+ }
+ }
+ [Field ("NSPasteboardTypePNG", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypePNG {
+ get {
+ fixed (IntPtr *storage = &values [4])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypePNG", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeRTF", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeRTF {
+ get {
+ fixed (IntPtr *storage = &values [5])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeRTF", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeRTFD", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeRTFD {
+ get {
+ fixed (IntPtr *storage = &values [6])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeRTFD", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeHTML", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeHTML {
+ get {
+ fixed (IntPtr *storage = &values [7])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeHTML", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeTabularText", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeTabularText {
+ get {
+ fixed (IntPtr *storage = &values [8])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeTabularText", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeFont", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeFont {
+ get {
+ fixed (IntPtr *storage = &values [9])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeFont", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeRuler", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeRuler {
+ get {
+ fixed (IntPtr *storage = &values [10])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeRuler", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeColor", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeColor {
+ get {
+ fixed (IntPtr *storage = &values [11])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeColor", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeSound", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeSound {
+ get {
+ fixed (IntPtr *storage = &values [12])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeSound", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeMultipleTextSelection", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeMultipleTextSelection {
+ get {
+ fixed (IntPtr *storage = &values [13])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeMultipleTextSelection", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeTextFinderOptions", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeTextFinderOptions {
+ get {
+ fixed (IntPtr *storage = &values [14])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeTextFinderOptions", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeURL", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeURL {
+ get {
+ fixed (IntPtr *storage = &values [15])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeURL", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeFileURL", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeFileURL {
+ get {
+ fixed (IntPtr *storage = &values [16])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeFileURL", storage);
+ }
+ }
+ [SupportedOSPlatform ("macos13.0")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [Field ("NSPasteboardTypeCollaborationMetadata", "SharedWithYou")]
+ internal unsafe static IntPtr NSPasteboardTypeCollaborationMetadata {
+ get {
+ fixed (IntPtr *storage = &values [17])
+ return Dlfcn.CachePointer (Libraries.SharedWithYou.Handle, "NSPasteboardTypeCollaborationMetadata", storage);
+ }
+ }
+ [Field ("NSFindPanelSearchOptionsPboardType", "AppKit")]
+ internal unsafe static IntPtr NSFindPanelSearchOptionsPboardType {
+ get {
+ fixed (IntPtr *storage = &values [18])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSFindPanelSearchOptionsPboardType", storage);
+ }
+ }
+ /// <summary>Retrieves the <see cref="global::Foundation.NSString" /> constant that describes <paramref name="self" />.</summary>
+ /// <param name="self">The instance on which this method operates.</param>
+ public static NSString? GetConstant (this NSPasteboardType self)
+ {
+ IntPtr ptr = IntPtr.Zero;
+ switch ((int) self) {
+ case 0: // NSPasteboardType.FileContents
+ ptr = NSFileContentsPboardType;
+ break;
+ case 1: // NSPasteboardType.String
+ ptr = NSPasteboardTypeString;
+ break;
+ case 2: // NSPasteboardType.Pdf
+ ptr = NSPasteboardTypePDF;
+ break;
+ case 3: // NSPasteboardType.Tiff
+ ptr = NSPasteboardTypeTIFF;
+ break;
+ case 4: // NSPasteboardType.Png
+ ptr = NSPasteboardTypePNG;
+ break;
+ case 5: // NSPasteboardType.Rtf
+ ptr = NSPasteboardTypeRTF;
+ break;
+ case 6: // NSPasteboardType.Rtfd
+ ptr = NSPasteboardTypeRTFD;
+ break;
+ case 7: // NSPasteboardType.Html
+ ptr = NSPasteboardTypeHTML;
+ break;
+ case 8: // NSPasteboardType.TabularText
+ ptr = NSPasteboardTypeTabularText;
+ break;
+ case 9: // NSPasteboardType.Font
+ ptr = NSPasteboardTypeFont;
+ break;
+ case 10: // NSPasteboardType.Ruler
+ ptr = NSPasteboardTypeRuler;
+ break;
+ case 11: // NSPasteboardType.Color
+ ptr = NSPasteboardTypeColor;
+ break;
+ case 12: // NSPasteboardType.Sound
+ ptr = NSPasteboardTypeSound;
+ break;
+ case 13: // NSPasteboardType.MultipleTextSelection
+ ptr = NSPasteboardTypeMultipleTextSelection;
+ break;
+ case 14: // NSPasteboardType.TextFinderOptions
+ ptr = NSPasteboardTypeTextFinderOptions;
+ break;
+ case 15: // NSPasteboardType.Url
+ ptr = NSPasteboardTypeURL;
+ break;
+ case 16: // NSPasteboardType.FileUrl
+ ptr = NSPasteboardTypeFileURL;
+ break;
+ case 17: // NSPasteboardType.CollaborationMetadata
+ ptr = NSPasteboardTypeCollaborationMetadata;
+ break;
+ case 18: // NSPasteboardType.FindPanelSearchOptions
+ ptr = NSFindPanelSearchOptionsPboardType;
+ break;
+ }
+ return (NSString?) Runtime.GetNSObject (ptr);
+ }
+ /// <summary>Retrieves the <see cref="global::AppKit.NSPasteboardType" /> value named by <paramref name="constant" />.</summary>
+ /// <param name="constant">The name of the constant to retrieve.</param>
+ public static NSPasteboardType GetValue (NSString constant)
+ {
+ if (constant is null)
+ throw new ArgumentNullException (nameof (constant));
+ if (constant.IsEqualTo (NSFileContentsPboardType))
+ return NSPasteboardType.FileContents;
+ if (constant.IsEqualTo (NSPasteboardTypeString))
+ return NSPasteboardType.String;
+ if (constant.IsEqualTo (NSPasteboardTypePDF))
+ return NSPasteboardType.Pdf;
+ if (constant.IsEqualTo (NSPasteboardTypeTIFF))
+ return NSPasteboardType.Tiff;
+ if (constant.IsEqualTo (NSPasteboardTypePNG))
+ return NSPasteboardType.Png;
+ if (constant.IsEqualTo (NSPasteboardTypeRTF))
+ return NSPasteboardType.Rtf;
+ if (constant.IsEqualTo (NSPasteboardTypeRTFD))
+ return NSPasteboardType.Rtfd;
+ if (constant.IsEqualTo (NSPasteboardTypeHTML))
+ return NSPasteboardType.Html;
+ if (constant.IsEqualTo (NSPasteboardTypeTabularText))
+ return NSPasteboardType.TabularText;
+ if (constant.IsEqualTo (NSPasteboardTypeFont))
+ return NSPasteboardType.Font;
+ if (constant.IsEqualTo (NSPasteboardTypeRuler))
+ return NSPasteboardType.Ruler;
+ if (constant.IsEqualTo (NSPasteboardTypeColor))
+ return NSPasteboardType.Color;
+ if (constant.IsEqualTo (NSPasteboardTypeSound))
+ return NSPasteboardType.Sound;
+ if (constant.IsEqualTo (NSPasteboardTypeMultipleTextSelection))
+ return NSPasteboardType.MultipleTextSelection;
+ if (constant.IsEqualTo (NSPasteboardTypeTextFinderOptions))
+ return NSPasteboardType.TextFinderOptions;
+ if (constant.IsEqualTo (NSPasteboardTypeURL))
+ return NSPasteboardType.Url;
+ if (constant.IsEqualTo (NSPasteboardTypeFileURL))
+ return NSPasteboardType.FileUrl;
+ if (constant.IsEqualTo (NSPasteboardTypeCollaborationMetadata))
+ return NSPasteboardType.CollaborationMetadata;
+ if (constant.IsEqualTo (NSFindPanelSearchOptionsPboardType))
+ return NSPasteboardType.FindPanelSearchOptions;
+ throw new NotSupportedException ($"{constant} has no associated enum value on this platform.");
+ }
+ }
+}
diff --git a/new/dotnet/macos/generated-sources/AppKit/NSPasteboardTypeFindPanelSearchOptionKey.g.cs b/new/dotnet/macos/generated-sources/AppKit/NSPasteboardTypeFindPanelSearchOptionKey.g.cs
new file mode 100644
index 0000000..bb0c35a
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/AppKit/NSPasteboardTypeFindPanelSearchOptionKey.g.cs
@@ -0,0 +1,101 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace AppKit {
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [SupportedOSPlatform ("macos")]
+ public enum NSPasteboardTypeFindPanelSearchOptionKey : int {
+ CaseInsensitiveSearch = 0,
+ SubstringMatch = 1,
+ }
+ /// <summary>Extension methods for the <see cref="global::AppKit.NSPasteboardTypeFindPanelSearchOptionKey" /> enumeration.</summary>
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [SupportedOSPlatform ("macos")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class NSPasteboardTypeFindPanelSearchOptionKeyExtensions {
+ static IntPtr[] values = new IntPtr [2];
+ [Field ("NSFindPanelCaseInsensitiveSearch", "AppKit")]
+ internal unsafe static IntPtr NSFindPanelCaseInsensitiveSearch {
+ get {
+ fixed (IntPtr *storage = &values [0])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSFindPanelCaseInsensitiveSearch", storage);
+ }
+ }
+ [Field ("NSFindPanelSubstringMatch", "AppKit")]
+ internal unsafe static IntPtr NSFindPanelSubstringMatch {
+ get {
+ fixed (IntPtr *storage = &values [1])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSFindPanelSubstringMatch", storage);
+ }
+ }
+ /// <summary>Retrieves the <see cref="global::Foundation.NSString" /> constant that describes <paramref name="self" />.</summary>
+ /// <param name="self">The instance on which this method operates.</param>
+ public static NSString? GetConstant (this NSPasteboardTypeFindPanelSearchOptionKey self)
+ {
+ IntPtr ptr = IntPtr.Zero;
+ switch ((int) self) {
+ case 0: // NSPasteboardTypeFindPanelSearchOptionKey.CaseInsensitiveSearch
+ ptr = NSFindPanelCaseInsensitiveSearch;
+ break;
+ case 1: // NSPasteboardTypeFindPanelSearchOptionKey.SubstringMatch
+ ptr = NSFindPanelSubstringMatch;
+ break;
+ }
+ return (NSString?) Runtime.GetNSObject (ptr);
+ }
+ /// <summary>Retrieves the <see cref="global::AppKit.NSPasteboardTypeFindPanelSearchOptionKey" /> value named by <paramref name="constant" />.</summary>
+ /// <param name="constant">The name of the constant to retrieve.</param>
+ public static NSPasteboardTypeFindPanelSearchOptionKey GetValue (NSString constant)
+ {
+ if (constant is null)
+ throw new ArgumentNullException (nameof (constant));
+ if (constant.IsEqualTo (NSFindPanelCaseInsensitiveSearch))
+ return NSPasteboardTypeFindPanelSearchOptionKey.CaseInsensitiveSearch;
+ if (constant.IsEqualTo (NSFindPanelSubstringMatch))
+ return NSPasteboardTypeFindPanelSearchOptionKey.SubstringMatch;
+ throw new NotSupportedException ($"{constant} has no associated enum value on this platform.");
+ }
+ }
+}
diff --git a/new/dotnet/macos/generated-sources/AppKit/NSPasteboardTypeTextFinderOptionKey.g.cs b/new/dotnet/macos/generated-sources/AppKit/NSPasteboardTypeTextFinderOptionKey.g.cs
new file mode 100644
index 0000000..e9d751d
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/AppKit/NSPasteboardTypeTextFinderOptionKey.g.cs
@@ -0,0 +1,101 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace AppKit {
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [SupportedOSPlatform ("macos")]
+ public enum NSPasteboardTypeTextFinderOptionKey : int {
+ CaseInsensitiveKey = 0,
+ MatchingTypeKey = 1,
+ }
+ /// <summary>Extension methods for the <see cref="global::AppKit.NSPasteboardTypeTextFinderOptionKey" /> enumeration.</summary>
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [SupportedOSPlatform ("macos")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class NSPasteboardTypeTextFinderOptionKeyExtensions {
+ static IntPtr[] values = new IntPtr [2];
+ [Field ("NSTextFinderCaseInsensitiveKey", "AppKit")]
+ internal unsafe static IntPtr NSTextFinderCaseInsensitiveKey {
+ get {
+ fixed (IntPtr *storage = &values [0])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSTextFinderCaseInsensitiveKey", storage);
+ }
+ }
+ [Field ("NSTextFinderMatchingTypeKey", "AppKit")]
+ internal unsafe static IntPtr NSTextFinderMatchingTypeKey {
+ get {
+ fixed (IntPtr *storage = &values [1])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSTextFinderMatchingTypeKey", storage);
+ }
+ }
+ /// <summary>Retrieves the <see cref="global::Foundation.NSString" /> constant that describes <paramref name="self" />.</summary>
+ /// <param name="self">The instance on which this method operates.</param>
+ public static NSString? GetConstant (this NSPasteboardTypeTextFinderOptionKey self)
+ {
+ IntPtr ptr = IntPtr.Zero;
+ switch ((int) self) {
+ case 0: // NSPasteboardTypeTextFinderOptionKey.CaseInsensitiveKey
+ ptr = NSTextFinderCaseInsensitiveKey;
+ break;
+ case 1: // NSPasteboardTypeTextFinderOptionKey.MatchingTypeKey
+ ptr = NSTextFinderMatchingTypeKey;
+ break;
+ }
+ return (NSString?) Runtime.GetNSObject (ptr);
+ }
+ /// <summary>Retrieves the <see cref="global::AppKit.NSPasteboardTypeTextFinderOptionKey" /> value named by <paramref name="constant" />.</summary>
+ /// <param name="constant">The name of the constant to retrieve.</param>
+ public static NSPasteboardTypeTextFinderOptionKey GetValue (NSString constant)
+ {
+ if (constant is null)
+ throw new ArgumentNullException (nameof (constant));
+ if (constant.IsEqualTo (NSTextFinderCaseInsensitiveKey))
+ return NSPasteboardTypeTextFinderOptionKey.CaseInsensitiveKey;
+ if (constant.IsEqualTo (NSTextFinderMatchingTypeKey))
+ return NSPasteboardTypeTextFinderOptionKey.MatchingTypeKey;
+ throw new NotSupportedException ($"{constant} has no associated enum value on this platform.");
+ }
+ }
+}
diff --git a/old/dotnet/macos/generated-sources/AppKit/NSSound.g.cs b/new/dotnet/macos/generated-sources/AppKit/NSSound.g.cs
index 91f34a1..82c7123 100644
--- a/old/dotnet/macos/generated-sources/AppKit/NSSound.g.cs
+++ b/new/dotnet/macos/generated-sources/AppKit/NSSound.g.cs
@@ -85,6 +85,9 @@ namespace AppKit {
const string selInitWithPasteboard_X = "initWithPasteboard:";
static readonly NativeHandle selInitWithPasteboard_XHandle = Selector.GetHandle ("initWithPasteboard:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithPasteboardPropertyList_OfType_X = "initWithPasteboardPropertyList:ofType:";
+ static readonly NativeHandle selInitWithPasteboardPropertyList_OfType_XHandle = Selector.GetHandle ("initWithPasteboardPropertyList:ofType:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selIsPlayingX = "isPlaying";
static readonly NativeHandle selIsPlayingXHandle = Selector.GetHandle ("isPlaying");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
diff --git a/old/dotnet/macos/generated-sources/Foundation/NSAttributedString.g.cs b/new/dotnet/macos/generated-sources/Foundation/NSAttributedString.g.cs
index 0af7f1c..35d3fcb 100644
--- a/old/dotnet/macos/generated-sources/Foundation/NSAttributedString.g.cs
+++ b/new/dotnet/macos/generated-sources/Foundation/NSAttributedString.g.cs
@@ -155,6 +155,9 @@ namespace Foundation {
const string selInitWithMarkdownString_Options_BaseURL_Error_X = "initWithMarkdownString:options:baseURL:error:";
static readonly NativeHandle selInitWithMarkdownString_Options_BaseURL_Error_XHandle = Selector.GetHandle ("initWithMarkdownString:options:baseURL:error:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithPasteboardPropertyList_OfType_X = "initWithPasteboardPropertyList:ofType:";
+ static readonly NativeHandle selInitWithPasteboardPropertyList_OfType_XHandle = Selector.GetHandle ("initWithPasteboardPropertyList:ofType:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selInitWithPath_DocumentAttributes_X = "initWithPath:documentAttributes:";
static readonly NativeHandle selInitWithPath_DocumentAttributes_XHandle = Selector.GetHandle ("initWithPath:documentAttributes:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
diff --git a/old/dotnet/macos/generated-sources/Foundation/NSString.g.cs b/new/dotnet/macos/generated-sources/Foundation/NSString.g.cs
index 7ed3146..f0b3dcc 100644
--- a/old/dotnet/macos/generated-sources/Foundation/NSString.g.cs
+++ b/new/dotnet/macos/generated-sources/Foundation/NSString.g.cs
@@ -113,6 +113,9 @@ namespace Foundation {
const string selInitWithData_Encoding_X = "initWithData:encoding:";
static readonly NativeHandle selInitWithData_Encoding_XHandle = Selector.GetHandle ("initWithData:encoding:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithPasteboardPropertyList_OfType_X = "initWithPasteboardPropertyList:ofType:";
+ static readonly NativeHandle selInitWithPasteboardPropertyList_OfType_XHandle = Selector.GetHandle ("initWithPasteboardPropertyList:ofType:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selIsAbsolutePathX = "isAbsolutePath";
static readonly NativeHandle selIsAbsolutePathXHandle = Selector.GetHandle ("isAbsolutePath");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
diff --git a/old/dotnet/macos/generated-sources/Foundation/NSUrl.g.cs b/new/dotnet/macos/generated-sources/Foundation/NSUrl.g.cs
index 04afcb3..daa83ff 100644
--- a/old/dotnet/macos/generated-sources/Foundation/NSUrl.g.cs
+++ b/new/dotnet/macos/generated-sources/Foundation/NSUrl.g.cs
@@ -164,6 +164,9 @@ namespace Foundation {
const string selInitWithCoder_X = "initWithCoder:";
static readonly NativeHandle selInitWithCoder_XHandle = Selector.GetHandle ("initWithCoder:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithPasteboardPropertyList_OfType_X = "initWithPasteboardPropertyList:ofType:";
+ static readonly NativeHandle selInitWithPasteboardPropertyList_OfType_XHandle = Selector.GetHandle ("initWithPasteboardPropertyList:ofType:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selInitWithScheme_Host_Path_X = "initWithScheme:host:path:";
static readonly NativeHandle selInitWithScheme_Host_Path_XHandle = Selector.GetHandle ("initWithScheme:host:path:");
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
diff --git a/old/dotnet/macos/ref/Microsoft.macOS.xml b/new/dotnet/macos/ref/Microsoft.macOS.xml
index f383a1d..72e69ae 100644
--- a/old/dotnet/macos/ref/Microsoft.macOS.xml
+++ b/new/dotnet/macos/ref/Microsoft.macOS.xml
@@ -52483,12 +52483,56 @@
</para>
</remarks>
</member>
+ <member name="T:AppKit.NSPasteboardNameExtensions">
+ <summary>Extension methods for the <see cref="T:AppKit.NSPasteboardName" /> enumeration.</summary>
+ </member>
+ <member name="M:AppKit.NSPasteboardNameExtensions.GetConstant(AppKit.NSPasteboardName)">
+ <summary>Retrieves the <see cref="T:Foundation.NSString" /> constant that describes <paramref name="self" />.</summary>
+ <param name="self">The instance on which this method operates.</param>
+ </member>
+ <member name="M:AppKit.NSPasteboardNameExtensions.GetValue(Foundation.NSString)">
+ <summary>Retrieves the <see cref="T:AppKit.NSPasteboardName" /> value named by <paramref name="constant" />.</summary>
+ <param name="constant">The name of the constant to retrieve.</param>
+ </member>
+ <member name="T:AppKit.NSPasteboardTypeExtensions">
+ <summary>Extension methods for the <see cref="T:AppKit.NSPasteboardType" /> enumeration.</summary>
+ </member>
+ <member name="M:AppKit.NSPasteboardTypeExtensions.GetConstant(AppKit.NSPasteboardType)">
+ <summary>Retrieves the <see cref="T:Foundation.NSString" /> constant that describes <paramref name="self" />.</summary>
+ <param name="self">The instance on which this method operates.</param>
+ </member>
+ <member name="M:AppKit.NSPasteboardTypeExtensions.GetValue(Foundation.NSString)">
+ <summary>Retrieves the <see cref="T:AppKit.NSPasteboardType" /> value named by <paramref name="constant" />.</summary>
+ <param name="constant">The name of the constant to retrieve.</param>
+ </member>
+ <member name="T:AppKit.NSPasteboardTypeFindPanelSearchOptionKeyExtensions">
+ <summary>Extension methods for the <see cref="T:AppKit.NSPasteboardTypeFindPanelSearchOptionKey" /> enumeration.</summary>
+ </member>
+ <member name="M:AppKit.NSPasteboardTypeFindPanelSearchOptionKeyExtensions.GetConstant(AppKit.NSPasteboardTypeFindPanelSearchOptionKey)">
+ <summary>Retrieves the <see cref="T:Foundation.NSString" /> constant that describes <paramref name="self" />.</summary>
+ <param name="self">The instance on which this method operates.</param>
+ </member>
+ <member name="M:AppKit.NSPasteboardTypeFindPanelSearchOptionKeyExtensions.GetValue(Foundation.NSString)">
+ <summary>Retrieves the <see cref="T:AppKit.NSPasteboardTypeFindPanelSearchOptionKey" /> value named by <paramref name="constant" />.</summary>
+ <param name="constant">The name of the constant to retrieve.</param>
+ </member>
<member name="T:AppKit.NSPasteboardTypeOwner_Extensions">
<summary>Extension methods to the <see cref="T:AppKit.INSPasteboardTypeOwner" /> interface to support all the methods from the NSPasteboardTypeOwner protocol.</summary>
<remarks>
<para>The extension methods for <see cref="T:AppKit.INSPasteboardTypeOwner" /> interface allow developers to treat instances of the interface as having all the optional methods of the original NSPasteboardTypeOwner protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.</para>
</remarks>
</member>
+ <member name="T:AppKit.NSPasteboardTypeTextFinderOptionKeyExtensions">
+ <summary>Extension methods for the <see cref="T:AppKit.NSPasteboardTypeTextFinderOptionKey" /> enumeration.</summary>
+ </member>
+ <member name="M:AppKit.NSPasteboardTypeTextFinderOptionKeyExtensions.GetConstant(AppKit.NSPasteboardTypeTextFinderOptionKey)">
+ <summary>Retrieves the <see cref="T:Foundation.NSString" /> constant that describes <paramref name="self" />.</summary>
+ <param name="self">The instance on which this method operates.</param>
+ </member>
+ <member name="M:AppKit.NSPasteboardTypeTextFinderOptionKeyExtensions.GetValue(Foundation.NSString)">
+ <summary>Retrieves the <see cref="T:AppKit.NSPasteboardTypeTextFinderOptionKey" /> value named by <paramref name="constant" />.</summary>
+ <param name="constant">The name of the constant to retrieve.</param>
+ </member>
<member name="T:AppKit.NSPasteboardWriting_Extensions">
<summary>Extension methods to the <see cref="T:AppKit.INSPasteboardWriting" /> interface to support all the methods from the NSPasteboardWriting protocol.</summary>
<remarks>
diff --git a/old/dotnet/projects/MacCatalyst/MacCatalyst.csproj b/new/dotnet/projects/MacCatalyst/MacCatalyst.csproj
index a765a79..aac05cd 100644
--- a/old/dotnet/projects/MacCatalyst/MacCatalyst.csproj
+++ b/new/dotnet/projects/MacCatalyst/MacCatalyst.csproj
@@ -152,6 +152,7 @@
<Compile Include="../../../../AppKit/NSOpenGLContext.cs" Link="sources/AppKit/NSOpenGLContext.cs"/>
<Compile Include="../../../../AppKit/NSOpenGLPixelFormat.cs" Link="sources/AppKit/NSOpenGLPixelFormat.cs"/>
<Compile Include="../../../../AppKit/NSPasteboard.cs" Link="sources/AppKit/NSPasteboard.cs"/>
+ <Compile Include="../../../../AppKit/NSPasteboardReading.cs" Link="sources/AppKit/NSPasteboardReading.cs"/>
<Compile Include="../../../../AppKit/NSPathControlItem.cs" Link="sources/AppKit/NSPathControlItem.cs"/>
<Compile Include="../../../../AppKit/NSPopUpButton.cs" Link="sources/AppKit/NSPopUpButton.cs"/>
<Compile Include="../../../../AppKit/NSPopUpButtonCell.cs" Link="sources/AppKit/NSPopUpButtonCell.cs"/>
diff --git a/old/dotnet/projects/macOS/macOS.csproj b/new/dotnet/projects/macOS/macOS.csproj
index 3e27857..ef6c7c6 100644
--- a/old/dotnet/projects/macOS/macOS.csproj
+++ b/new/dotnet/projects/macOS/macOS.csproj
@@ -145,6 +145,7 @@
<Compile Include="../../../../AppKit/NSOpenGLContext.cs" Link="sources/AppKit/NSOpenGLContext.cs"/>
<Compile Include="../../../../AppKit/NSOpenGLPixelFormat.cs" Link="sources/AppKit/NSOpenGLPixelFormat.cs"/>
<Compile Include="../../../../AppKit/NSPasteboard.cs" Link="sources/AppKit/NSPasteboard.cs"/>
+ <Compile Include="../../../../AppKit/NSPasteboardReading.cs" Link="sources/AppKit/NSPasteboardReading.cs"/>
<Compile Include="../../../../AppKit/NSPathControlItem.cs" Link="sources/AppKit/NSPathControlItem.cs"/>
<Compile Include="../../../../AppKit/NSPopUpButton.cs" Link="sources/AppKit/NSPopUpButton.cs"/>
<Compile Include="../../../../AppKit/NSPopUpButtonCell.cs" Link="sources/AppKit/NSPopUpButtonCell.cs"/>
diff --git a/old/dotnet/tvos/SourceLink.json b/new/dotnet/tvos/SourceLink.json
index 3802cdf..6975de4 100644
--- a/old/dotnet/tvos/SourceLink.json
+++ b/new/dotnet/tvos/SourceLink.json
@@ -1,5 +1,5 @@
{
"documents": {
- "/Users/builder/azdo/_work/2/a/change-detection/tmp/src/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/eaae1ae6ebb352d58aa373f5e02bfdb15c4c2cbd/src*"
+ "/Users/builder/azdo/_work/2/s/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/f1ea2f1ca82cf6d3f9622b9e885b0faa9c23bf9a/src*"
}
}
diff --git a/old/mac/full/AppKit/NSPasteboard.g.cs b/new/mac/full/AppKit/NSPasteboard.g.cs
index 26d55b9..13127ae 100644
--- a/old/mac/full/AppKit/NSPasteboard.g.cs
+++ b/new/mac/full/AppKit/NSPasteboard.g.cs
@@ -571,6 +571,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSFileContentsType;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSFileContentsPboardType", "AppKit")]
public static NSString NSFileContentsType {
get {
@@ -677,6 +679,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardNameDrag;
+ [Obsolete ("Use the 'NSPasteboardName' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardNameDrag", "AppKit")]
public static NSString NSPasteboardNameDrag {
get {
@@ -687,6 +691,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardNameFind;
+ [Obsolete ("Use the 'NSPasteboardName' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardNameFind", "AppKit")]
public static NSString NSPasteboardNameFind {
get {
@@ -697,6 +703,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardNameFont;
+ [Obsolete ("Use the 'NSPasteboardName' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardNameFont", "AppKit")]
public static NSString NSPasteboardNameFont {
get {
@@ -707,6 +715,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardNameGeneral;
+ [Obsolete ("Use the 'NSPasteboardName' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardNameGeneral", "AppKit")]
public static NSString NSPasteboardNameGeneral {
get {
@@ -717,6 +727,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardNameRuler;
+ [Obsolete ("Use the 'NSPasteboardName' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardNameRuler", "AppKit")]
public static NSString NSPasteboardNameRuler {
get {
@@ -727,6 +739,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeColor;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeColor", "AppKit")]
public static NSString NSPasteboardTypeColor {
get {
@@ -737,6 +751,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeFileUrl;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeFileURL", "AppKit")]
public static NSString NSPasteboardTypeFileUrl {
get {
@@ -759,6 +775,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeFont;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeFont", "AppKit")]
public static NSString NSPasteboardTypeFont {
get {
@@ -769,6 +787,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeHTML;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeHTML", "AppKit")]
public static NSString NSPasteboardTypeHTML {
get {
@@ -779,6 +799,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeMultipleTextSelection;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeMultipleTextSelection", "AppKit")]
public static NSString NSPasteboardTypeMultipleTextSelection {
get {
@@ -789,6 +811,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypePDF;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypePDF", "AppKit")]
public static NSString NSPasteboardTypePDF {
get {
@@ -799,6 +823,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypePNG;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypePNG", "AppKit")]
public static NSString NSPasteboardTypePNG {
get {
@@ -809,6 +835,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeRTF;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeRTF", "AppKit")]
public static NSString NSPasteboardTypeRTF {
get {
@@ -819,6 +847,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeRTFD;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeRTFD", "AppKit")]
public static NSString NSPasteboardTypeRTFD {
get {
@@ -829,6 +859,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeRuler;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeRuler", "AppKit")]
public static NSString NSPasteboardTypeRuler {
get {
@@ -839,6 +871,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeSound;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeSound", "AppKit")]
public static NSString NSPasteboardTypeSound {
get {
@@ -849,6 +883,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeString;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeString", "AppKit")]
public static NSString NSPasteboardTypeString {
get {
@@ -859,6 +895,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeTIFF;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeTIFF", "AppKit")]
public static NSString NSPasteboardTypeTIFF {
get {
@@ -869,6 +907,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeTabularText;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeTabularText", "AppKit")]
public static NSString NSPasteboardTypeTabularText {
get {
@@ -879,6 +919,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeUrl;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeURL", "AppKit")]
public static NSString NSPasteboardTypeUrl {
get {
@@ -902,7 +944,9 @@ namespace AppKit {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPictType;
[Field ("NSPICTPboardType", "AppKit")]
+ [Deprecated (PlatformName.MacOSX, 10,6, message: "Do not use, the PICT format was discontinued a long time ago.")]
public static NSString NSPictType {
+ [Deprecated (PlatformName.MacOSX, 10,6, message: "Do not use, the PICT format was discontinued a long time ago.")]
get {
if (_NSPictType is null)
_NSPictType = Dlfcn.GetStringConstant (Libraries.AppKit.Handle, "NSPICTPboardType")!;
@@ -1031,6 +1075,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _PasteboardTypeTextFinderOptions;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeTextFinderOptions", "AppKit")]
public static NSString PasteboardTypeTextFinderOptions {
get {
diff --git a/new/mac/full/AppKit/NSPasteboardName.g.cs b/new/mac/full/AppKit/NSPasteboardName.g.cs
new file mode 100644
index 0000000..6ae9f08
--- /dev/null
+++ b/new/mac/full/AppKit/NSPasteboardName.g.cs
@@ -0,0 +1,137 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace AppKit {
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ public enum NSPasteboardName : int {
+ General = 0,
+ Font = 1,
+ Ruler = 2,
+ Find = 3,
+ Drag = 4,
+ }
+ /// <summary>Extension methods for the <see cref="global::AppKit.NSPasteboardName" /> enumeration.</summary>
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class NSPasteboardNameExtensions {
+ static IntPtr[] values = new IntPtr [5];
+ [Field ("NSPasteboardNameGeneral", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardNameGeneral {
+ get {
+ fixed (IntPtr *storage = &values [0])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardNameGeneral", storage);
+ }
+ }
+ [Field ("NSPasteboardNameFont", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardNameFont {
+ get {
+ fixed (IntPtr *storage = &values [1])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardNameFont", storage);
+ }
+ }
+ [Field ("NSPasteboardNameRuler", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardNameRuler {
+ get {
+ fixed (IntPtr *storage = &values [2])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardNameRuler", storage);
+ }
+ }
+ [Field ("NSPasteboardNameFind", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardNameFind {
+ get {
+ fixed (IntPtr *storage = &values [3])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardNameFind", storage);
+ }
+ }
+ [Field ("NSPasteboardNameDrag", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardNameDrag {
+ get {
+ fixed (IntPtr *storage = &values [4])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardNameDrag", storage);
+ }
+ }
+ /// <summary>Retrieves the <see cref="global::Foundation.NSString" /> constant that describes <paramref name="self" />.</summary>
+ /// <param name="self">The instance on which this method operates.</param>
+ public static NSString? GetConstant (this NSPasteboardName self)
+ {
+ IntPtr ptr = IntPtr.Zero;
+ switch ((int) self) {
+ case 0: // NSPasteboardName.General
+ ptr = NSPasteboardNameGeneral;
+ break;
+ case 1: // NSPasteboardName.Font
+ ptr = NSPasteboardNameFont;
+ break;
+ case 2: // NSPasteboardName.Ruler
+ ptr = NSPasteboardNameRuler;
+ break;
+ case 3: // NSPasteboardName.Find
+ ptr = NSPasteboardNameFind;
+ break;
+ case 4: // NSPasteboardName.Drag
+ ptr = NSPasteboardNameDrag;
+ break;
+ }
+ return (NSString?) Runtime.GetNSObject (ptr);
+ }
+ /// <summary>Retrieves the <see cref="global::AppKit.NSPasteboardName" /> value named by <paramref name="constant" />.</summary>
+ /// <param name="constant">The name of the constant to retrieve.</param>
+ public static NSPasteboardName GetValue (NSString constant)
+ {
+ if (constant is null)
+ throw new ArgumentNullException (nameof (constant));
+ if (constant.IsEqualTo (NSPasteboardNameGeneral))
+ return NSPasteboardName.General;
+ if (constant.IsEqualTo (NSPasteboardNameFont))
+ return NSPasteboardName.Font;
+ if (constant.IsEqualTo (NSPasteboardNameRuler))
+ return NSPasteboardName.Ruler;
+ if (constant.IsEqualTo (NSPasteboardNameFind))
+ return NSPasteboardName.Find;
+ if (constant.IsEqualTo (NSPasteboardNameDrag))
+ return NSPasteboardName.Drag;
+ throw new NotSupportedException ($"{constant} has no associated enum value on this platform.");
+ }
+ }
+}
diff --git a/new/mac/full/AppKit/NSPasteboardType.g.cs b/new/mac/full/AppKit/NSPasteboardType.g.cs
new file mode 100644
index 0000000..88cf870
--- /dev/null
+++ b/new/mac/full/AppKit/NSPasteboardType.g.cs
@@ -0,0 +1,321 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace AppKit {
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ public enum NSPasteboardType : int {
+ FileContents = 0,
+ String = 1,
+ Pdf = 2,
+ Tiff = 3,
+ Png = 4,
+ Rtf = 5,
+ Rtfd = 6,
+ Html = 7,
+ TabularText = 8,
+ Font = 9,
+ Ruler = 10,
+ Color = 11,
+ Sound = 12,
+ MultipleTextSelection = 13,
+ TextFinderOptions = 14,
+ Url = 15,
+ FileUrl = 16,
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ CollaborationMetadata = 17,
+ FindPanelSearchOptions = 18,
+ }
+ /// <summary>Extension methods for the <see cref="global::AppKit.NSPasteboardType" /> enumeration.</summary>
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class NSPasteboardTypeExtensions {
+ static IntPtr[] values = new IntPtr [19];
+ [Field ("NSFileContentsPboardType", "AppKit")]
+ internal unsafe static IntPtr NSFileContentsPboardType {
+ get {
+ fixed (IntPtr *storage = &values [0])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSFileContentsPboardType", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeString", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeString {
+ get {
+ fixed (IntPtr *storage = &values [1])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeString", storage);
+ }
+ }
+ [Field ("NSPasteboardTypePDF", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypePDF {
+ get {
+ fixed (IntPtr *storage = &values [2])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypePDF", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeTIFF", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeTIFF {
+ get {
+ fixed (IntPtr *storage = &values [3])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeTIFF", storage);
+ }
+ }
+ [Field ("NSPasteboardTypePNG", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypePNG {
+ get {
+ fixed (IntPtr *storage = &values [4])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypePNG", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeRTF", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeRTF {
+ get {
+ fixed (IntPtr *storage = &values [5])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeRTF", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeRTFD", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeRTFD {
+ get {
+ fixed (IntPtr *storage = &values [6])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeRTFD", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeHTML", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeHTML {
+ get {
+ fixed (IntPtr *storage = &values [7])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeHTML", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeTabularText", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeTabularText {
+ get {
+ fixed (IntPtr *storage = &values [8])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeTabularText", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeFont", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeFont {
+ get {
+ fixed (IntPtr *storage = &values [9])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeFont", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeRuler", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeRuler {
+ get {
+ fixed (IntPtr *storage = &values [10])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeRuler", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeColor", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeColor {
+ get {
+ fixed (IntPtr *storage = &values [11])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeColor", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeSound", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeSound {
+ get {
+ fixed (IntPtr *storage = &values [12])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeSound", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeMultipleTextSelection", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeMultipleTextSelection {
+ get {
+ fixed (IntPtr *storage = &values [13])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeMultipleTextSelection", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeTextFinderOptions", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeTextFinderOptions {
+ get {
+ fixed (IntPtr *storage = &values [14])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeTextFinderOptions", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeURL", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeURL {
+ get {
+ fixed (IntPtr *storage = &values [15])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeURL", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeFileURL", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeFileURL {
+ get {
+ fixed (IntPtr *storage = &values [16])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeFileURL", storage);
+ }
+ }
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Field ("NSPasteboardTypeCollaborationMetadata", "SharedWithYou")]
+ internal unsafe static IntPtr NSPasteboardTypeCollaborationMetadata {
+ get {
+ fixed (IntPtr *storage = &values [17])
+ return Dlfcn.CachePointer (Libraries.SharedWithYou.Handle, "NSPasteboardTypeCollaborationMetadata", storage);
+ }
+ }
+ [Field ("NSFindPanelSearchOptionsPboardType", "AppKit")]
+ internal unsafe static IntPtr NSFindPanelSearchOptionsPboardType {
+ get {
+ fixed (IntPtr *storage = &values [18])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSFindPanelSearchOptionsPboardType", storage);
+ }
+ }
+ /// <summary>Retrieves the <see cref="global::Foundation.NSString" /> constant that describes <paramref name="self" />.</summary>
+ /// <param name="self">The instance on which this method operates.</param>
+ public static NSString? GetConstant (this NSPasteboardType self)
+ {
+ IntPtr ptr = IntPtr.Zero;
+ switch ((int) self) {
+ case 0: // NSPasteboardType.FileContents
+ ptr = NSFileContentsPboardType;
+ break;
+ case 1: // NSPasteboardType.String
+ ptr = NSPasteboardTypeString;
+ break;
+ case 2: // NSPasteboardType.Pdf
+ ptr = NSPasteboardTypePDF;
+ break;
+ case 3: // NSPasteboardType.Tiff
+ ptr = NSPasteboardTypeTIFF;
+ break;
+ case 4: // NSPasteboardType.Png
+ ptr = NSPasteboardTypePNG;
+ break;
+ case 5: // NSPasteboardType.Rtf
+ ptr = NSPasteboardTypeRTF;
+ break;
+ case 6: // NSPasteboardType.Rtfd
+ ptr = NSPasteboardTypeRTFD;
+ break;
+ case 7: // NSPasteboardType.Html
+ ptr = NSPasteboardTypeHTML;
+ break;
+ case 8: // NSPasteboardType.TabularText
+ ptr = NSPasteboardTypeTabularText;
+ break;
+ case 9: // NSPasteboardType.Font
+ ptr = NSPasteboardTypeFont;
+ break;
+ case 10: // NSPasteboardType.Ruler
+ ptr = NSPasteboardTypeRuler;
+ break;
+ case 11: // NSPasteboardType.Color
+ ptr = NSPasteboardTypeColor;
+ break;
+ case 12: // NSPasteboardType.Sound
+ ptr = NSPasteboardTypeSound;
+ break;
+ case 13: // NSPasteboardType.MultipleTextSelection
+ ptr = NSPasteboardTypeMultipleTextSelection;
+ break;
+ case 14: // NSPasteboardType.TextFinderOptions
+ ptr = NSPasteboardTypeTextFinderOptions;
+ break;
+ case 15: // NSPasteboardType.Url
+ ptr = NSPasteboardTypeURL;
+ break;
+ case 16: // NSPasteboardType.FileUrl
+ ptr = NSPasteboardTypeFileURL;
+ break;
+ case 17: // NSPasteboardType.CollaborationMetadata
+ ptr = NSPasteboardTypeCollaborationMetadata;
+ break;
+ case 18: // NSPasteboardType.FindPanelSearchOptions
+ ptr = NSFindPanelSearchOptionsPboardType;
+ break;
+ }
+ return (NSString?) Runtime.GetNSObject (ptr);
+ }
+ /// <summary>Retrieves the <see cref="global::AppKit.NSPasteboardType" /> value named by <paramref name="constant" />.</summary>
+ /// <param name="constant">The name of the constant to retrieve.</param>
+ public static NSPasteboardType GetValue (NSString constant)
+ {
+ if (constant is null)
+ throw new ArgumentNullException (nameof (constant));
+ if (constant.IsEqualTo (NSFileContentsPboardType))
+ return NSPasteboardType.FileContents;
+ if (constant.IsEqualTo (NSPasteboardTypeString))
+ return NSPasteboardType.String;
+ if (constant.IsEqualTo (NSPasteboardTypePDF))
+ return NSPasteboardType.Pdf;
+ if (constant.IsEqualTo (NSPasteboardTypeTIFF))
+ return NSPasteboardType.Tiff;
+ if (constant.IsEqualTo (NSPasteboardTypePNG))
+ return NSPasteboardType.Png;
+ if (constant.IsEqualTo (NSPasteboardTypeRTF))
+ return NSPasteboardType.Rtf;
+ if (constant.IsEqualTo (NSPasteboardTypeRTFD))
+ return NSPasteboardType.Rtfd;
+ if (constant.IsEqualTo (NSPasteboardTypeHTML))
+ return NSPasteboardType.Html;
+ if (constant.IsEqualTo (NSPasteboardTypeTabularText))
+ return NSPasteboardType.TabularText;
+ if (constant.IsEqualTo (NSPasteboardTypeFont))
+ return NSPasteboardType.Font;
+ if (constant.IsEqualTo (NSPasteboardTypeRuler))
+ return NSPasteboardType.Ruler;
+ if (constant.IsEqualTo (NSPasteboardTypeColor))
+ return NSPasteboardType.Color;
+ if (constant.IsEqualTo (NSPasteboardTypeSound))
+ return NSPasteboardType.Sound;
+ if (constant.IsEqualTo (NSPasteboardTypeMultipleTextSelection))
+ return NSPasteboardType.MultipleTextSelection;
+ if (constant.IsEqualTo (NSPasteboardTypeTextFinderOptions))
+ return NSPasteboardType.TextFinderOptions;
+ if (constant.IsEqualTo (NSPasteboardTypeURL))
+ return NSPasteboardType.Url;
+ if (constant.IsEqualTo (NSPasteboardTypeFileURL))
+ return NSPasteboardType.FileUrl;
+ if (constant.IsEqualTo (NSPasteboardTypeCollaborationMetadata))
+ return NSPasteboardType.CollaborationMetadata;
+ if (constant.IsEqualTo (NSFindPanelSearchOptionsPboardType))
+ return NSPasteboardType.FindPanelSearchOptions;
+ throw new NotSupportedException ($"{constant} has no associated enum value on this platform.");
+ }
+ }
+}
diff --git a/new/mac/full/AppKit/NSPasteboardTypeFindPanelSearchOptionKey.g.cs b/new/mac/full/AppKit/NSPasteboardTypeFindPanelSearchOptionKey.g.cs
new file mode 100644
index 0000000..eed8b2e
--- /dev/null
+++ b/new/mac/full/AppKit/NSPasteboardTypeFindPanelSearchOptionKey.g.cs
@@ -0,0 +1,98 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace AppKit {
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ public enum NSPasteboardTypeFindPanelSearchOptionKey : int {
+ CaseInsensitiveSearch = 0,
+ SubstringMatch = 1,
+ }
+ /// <summary>Extension methods for the <see cref="global::AppKit.NSPasteboardTypeFindPanelSearchOptionKey" /> enumeration.</summary>
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class NSPasteboardTypeFindPanelSearchOptionKeyExtensions {
+ static IntPtr[] values = new IntPtr [2];
+ [Field ("NSFindPanelCaseInsensitiveSearch", "AppKit")]
+ internal unsafe static IntPtr NSFindPanelCaseInsensitiveSearch {
+ get {
+ fixed (IntPtr *storage = &values [0])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSFindPanelCaseInsensitiveSearch", storage);
+ }
+ }
+ [Field ("NSFindPanelSubstringMatch", "AppKit")]
+ internal unsafe static IntPtr NSFindPanelSubstringMatch {
+ get {
+ fixed (IntPtr *storage = &values [1])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSFindPanelSubstringMatch", storage);
+ }
+ }
+ /// <summary>Retrieves the <see cref="global::Foundation.NSString" /> constant that describes <paramref name="self" />.</summary>
+ /// <param name="self">The instance on which this method operates.</param>
+ public static NSString? GetConstant (this NSPasteboardTypeFindPanelSearchOptionKey self)
+ {
+ IntPtr ptr = IntPtr.Zero;
+ switch ((int) self) {
+ case 0: // NSPasteboardTypeFindPanelSearchOptionKey.CaseInsensitiveSearch
+ ptr = NSFindPanelCaseInsensitiveSearch;
+ break;
+ case 1: // NSPasteboardTypeFindPanelSearchOptionKey.SubstringMatch
+ ptr = NSFindPanelSubstringMatch;
+ break;
+ }
+ return (NSString?) Runtime.GetNSObject (ptr);
+ }
+ /// <summary>Retrieves the <see cref="global::AppKit.NSPasteboardTypeFindPanelSearchOptionKey" /> value named by <paramref name="constant" />.</summary>
+ /// <param name="constant">The name of the constant to retrieve.</param>
+ public static NSPasteboardTypeFindPanelSearchOptionKey GetValue (NSString constant)
+ {
+ if (constant is null)
+ throw new ArgumentNullException (nameof (constant));
+ if (constant.IsEqualTo (NSFindPanelCaseInsensitiveSearch))
+ return NSPasteboardTypeFindPanelSearchOptionKey.CaseInsensitiveSearch;
+ if (constant.IsEqualTo (NSFindPanelSubstringMatch))
+ return NSPasteboardTypeFindPanelSearchOptionKey.SubstringMatch;
+ throw new NotSupportedException ($"{constant} has no associated enum value on this platform.");
+ }
+ }
+}
diff --git a/new/mac/full/AppKit/NSPasteboardTypeTextFinderOptionKey.g.cs b/new/mac/full/AppKit/NSPasteboardTypeTextFinderOptionKey.g.cs
new file mode 100644
index 0000000..65027d0
--- /dev/null
+++ b/new/mac/full/AppKit/NSPasteboardTypeTextFinderOptionKey.g.cs
@@ -0,0 +1,98 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace AppKit {
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ public enum NSPasteboardTypeTextFinderOptionKey : int {
+ CaseInsensitiveKey = 0,
+ MatchingTypeKey = 1,
+ }
+ /// <summary>Extension methods for the <see cref="global::AppKit.NSPasteboardTypeTextFinderOptionKey" /> enumeration.</summary>
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class NSPasteboardTypeTextFinderOptionKeyExtensions {
+ static IntPtr[] values = new IntPtr [2];
+ [Field ("NSTextFinderCaseInsensitiveKey", "AppKit")]
+ internal unsafe static IntPtr NSTextFinderCaseInsensitiveKey {
+ get {
+ fixed (IntPtr *storage = &values [0])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSTextFinderCaseInsensitiveKey", storage);
+ }
+ }
+ [Field ("NSTextFinderMatchingTypeKey", "AppKit")]
+ internal unsafe static IntPtr NSTextFinderMatchingTypeKey {
+ get {
+ fixed (IntPtr *storage = &values [1])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSTextFinderMatchingTypeKey", storage);
+ }
+ }
+ /// <summary>Retrieves the <see cref="global::Foundation.NSString" /> constant that describes <paramref name="self" />.</summary>
+ /// <param name="self">The instance on which this method operates.</param>
+ public static NSString? GetConstant (this NSPasteboardTypeTextFinderOptionKey self)
+ {
+ IntPtr ptr = IntPtr.Zero;
+ switch ((int) self) {
+ case 0: // NSPasteboardTypeTextFinderOptionKey.CaseInsensitiveKey
+ ptr = NSTextFinderCaseInsensitiveKey;
+ break;
+ case 1: // NSPasteboardTypeTextFinderOptionKey.MatchingTypeKey
+ ptr = NSTextFinderMatchingTypeKey;
+ break;
+ }
+ return (NSString?) Runtime.GetNSObject (ptr);
+ }
+ /// <summary>Retrieves the <see cref="global::AppKit.NSPasteboardTypeTextFinderOptionKey" /> value named by <paramref name="constant" />.</summary>
+ /// <param name="constant">The name of the constant to retrieve.</param>
+ public static NSPasteboardTypeTextFinderOptionKey GetValue (NSString constant)
+ {
+ if (constant is null)
+ throw new ArgumentNullException (nameof (constant));
+ if (constant.IsEqualTo (NSTextFinderCaseInsensitiveKey))
+ return NSPasteboardTypeTextFinderOptionKey.CaseInsensitiveKey;
+ if (constant.IsEqualTo (NSTextFinderMatchingTypeKey))
+ return NSPasteboardTypeTextFinderOptionKey.MatchingTypeKey;
+ throw new NotSupportedException ($"{constant} has no associated enum value on this platform.");
+ }
+ }
+}
diff --git a/old/mac/mobile/AppKit/NSPasteboard.g.cs b/new/mac/mobile/AppKit/NSPasteboard.g.cs
index 26d55b9..13127ae 100644
--- a/old/mac/mobile/AppKit/NSPasteboard.g.cs
+++ b/new/mac/mobile/AppKit/NSPasteboard.g.cs
@@ -571,6 +571,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSFileContentsType;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSFileContentsPboardType", "AppKit")]
public static NSString NSFileContentsType {
get {
@@ -677,6 +679,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardNameDrag;
+ [Obsolete ("Use the 'NSPasteboardName' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardNameDrag", "AppKit")]
public static NSString NSPasteboardNameDrag {
get {
@@ -687,6 +691,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardNameFind;
+ [Obsolete ("Use the 'NSPasteboardName' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardNameFind", "AppKit")]
public static NSString NSPasteboardNameFind {
get {
@@ -697,6 +703,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardNameFont;
+ [Obsolete ("Use the 'NSPasteboardName' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardNameFont", "AppKit")]
public static NSString NSPasteboardNameFont {
get {
@@ -707,6 +715,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardNameGeneral;
+ [Obsolete ("Use the 'NSPasteboardName' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardNameGeneral", "AppKit")]
public static NSString NSPasteboardNameGeneral {
get {
@@ -717,6 +727,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardNameRuler;
+ [Obsolete ("Use the 'NSPasteboardName' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardNameRuler", "AppKit")]
public static NSString NSPasteboardNameRuler {
get {
@@ -727,6 +739,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeColor;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeColor", "AppKit")]
public static NSString NSPasteboardTypeColor {
get {
@@ -737,6 +751,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeFileUrl;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeFileURL", "AppKit")]
public static NSString NSPasteboardTypeFileUrl {
get {
@@ -759,6 +775,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeFont;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeFont", "AppKit")]
public static NSString NSPasteboardTypeFont {
get {
@@ -769,6 +787,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeHTML;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeHTML", "AppKit")]
public static NSString NSPasteboardTypeHTML {
get {
@@ -779,6 +799,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeMultipleTextSelection;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeMultipleTextSelection", "AppKit")]
public static NSString NSPasteboardTypeMultipleTextSelection {
get {
@@ -789,6 +811,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypePDF;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypePDF", "AppKit")]
public static NSString NSPasteboardTypePDF {
get {
@@ -799,6 +823,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypePNG;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypePNG", "AppKit")]
public static NSString NSPasteboardTypePNG {
get {
@@ -809,6 +835,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeRTF;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeRTF", "AppKit")]
public static NSString NSPasteboardTypeRTF {
get {
@@ -819,6 +847,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeRTFD;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeRTFD", "AppKit")]
public static NSString NSPasteboardTypeRTFD {
get {
@@ -829,6 +859,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeRuler;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeRuler", "AppKit")]
public static NSString NSPasteboardTypeRuler {
get {
@@ -839,6 +871,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeSound;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeSound", "AppKit")]
public static NSString NSPasteboardTypeSound {
get {
@@ -849,6 +883,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeString;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeString", "AppKit")]
public static NSString NSPasteboardTypeString {
get {
@@ -859,6 +895,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeTIFF;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeTIFF", "AppKit")]
public static NSString NSPasteboardTypeTIFF {
get {
@@ -869,6 +907,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeTabularText;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeTabularText", "AppKit")]
public static NSString NSPasteboardTypeTabularText {
get {
@@ -879,6 +919,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPasteboardTypeUrl;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeURL", "AppKit")]
public static NSString NSPasteboardTypeUrl {
get {
@@ -902,7 +944,9 @@ namespace AppKit {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _NSPictType;
[Field ("NSPICTPboardType", "AppKit")]
+ [Deprecated (PlatformName.MacOSX, 10,6, message: "Do not use, the PICT format was discontinued a long time ago.")]
public static NSString NSPictType {
+ [Deprecated (PlatformName.MacOSX, 10,6, message: "Do not use, the PICT format was discontinued a long time ago.")]
get {
if (_NSPictType is null)
_NSPictType = Dlfcn.GetStringConstant (Libraries.AppKit.Handle, "NSPICTPboardType")!;
@@ -1031,6 +1075,8 @@ namespace AppKit {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static NSString? _PasteboardTypeTextFinderOptions;
+ [Obsolete ("Use the 'NSPasteboardType' enum instead.", false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
[Field ("NSPasteboardTypeTextFinderOptions", "AppKit")]
public static NSString PasteboardTypeTextFinderOptions {
get {
diff --git a/new/mac/mobile/AppKit/NSPasteboardName.g.cs b/new/mac/mobile/AppKit/NSPasteboardName.g.cs
new file mode 100644
index 0000000..6ae9f08
--- /dev/null
+++ b/new/mac/mobile/AppKit/NSPasteboardName.g.cs
@@ -0,0 +1,137 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace AppKit {
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ public enum NSPasteboardName : int {
+ General = 0,
+ Font = 1,
+ Ruler = 2,
+ Find = 3,
+ Drag = 4,
+ }
+ /// <summary>Extension methods for the <see cref="global::AppKit.NSPasteboardName" /> enumeration.</summary>
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class NSPasteboardNameExtensions {
+ static IntPtr[] values = new IntPtr [5];
+ [Field ("NSPasteboardNameGeneral", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardNameGeneral {
+ get {
+ fixed (IntPtr *storage = &values [0])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardNameGeneral", storage);
+ }
+ }
+ [Field ("NSPasteboardNameFont", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardNameFont {
+ get {
+ fixed (IntPtr *storage = &values [1])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardNameFont", storage);
+ }
+ }
+ [Field ("NSPasteboardNameRuler", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardNameRuler {
+ get {
+ fixed (IntPtr *storage = &values [2])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardNameRuler", storage);
+ }
+ }
+ [Field ("NSPasteboardNameFind", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardNameFind {
+ get {
+ fixed (IntPtr *storage = &values [3])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardNameFind", storage);
+ }
+ }
+ [Field ("NSPasteboardNameDrag", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardNameDrag {
+ get {
+ fixed (IntPtr *storage = &values [4])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardNameDrag", storage);
+ }
+ }
+ /// <summary>Retrieves the <see cref="global::Foundation.NSString" /> constant that describes <paramref name="self" />.</summary>
+ /// <param name="self">The instance on which this method operates.</param>
+ public static NSString? GetConstant (this NSPasteboardName self)
+ {
+ IntPtr ptr = IntPtr.Zero;
+ switch ((int) self) {
+ case 0: // NSPasteboardName.General
+ ptr = NSPasteboardNameGeneral;
+ break;
+ case 1: // NSPasteboardName.Font
+ ptr = NSPasteboardNameFont;
+ break;
+ case 2: // NSPasteboardName.Ruler
+ ptr = NSPasteboardNameRuler;
+ break;
+ case 3: // NSPasteboardName.Find
+ ptr = NSPasteboardNameFind;
+ break;
+ case 4: // NSPasteboardName.Drag
+ ptr = NSPasteboardNameDrag;
+ break;
+ }
+ return (NSString?) Runtime.GetNSObject (ptr);
+ }
+ /// <summary>Retrieves the <see cref="global::AppKit.NSPasteboardName" /> value named by <paramref name="constant" />.</summary>
+ /// <param name="constant">The name of the constant to retrieve.</param>
+ public static NSPasteboardName GetValue (NSString constant)
+ {
+ if (constant is null)
+ throw new ArgumentNullException (nameof (constant));
+ if (constant.IsEqualTo (NSPasteboardNameGeneral))
+ return NSPasteboardName.General;
+ if (constant.IsEqualTo (NSPasteboardNameFont))
+ return NSPasteboardName.Font;
+ if (constant.IsEqualTo (NSPasteboardNameRuler))
+ return NSPasteboardName.Ruler;
+ if (constant.IsEqualTo (NSPasteboardNameFind))
+ return NSPasteboardName.Find;
+ if (constant.IsEqualTo (NSPasteboardNameDrag))
+ return NSPasteboardName.Drag;
+ throw new NotSupportedException ($"{constant} has no associated enum value on this platform.");
+ }
+ }
+}
diff --git a/new/mac/mobile/AppKit/NSPasteboardType.g.cs b/new/mac/mobile/AppKit/NSPasteboardType.g.cs
new file mode 100644
index 0000000..88cf870
--- /dev/null
+++ b/new/mac/mobile/AppKit/NSPasteboardType.g.cs
@@ -0,0 +1,321 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace AppKit {
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ public enum NSPasteboardType : int {
+ FileContents = 0,
+ String = 1,
+ Pdf = 2,
+ Tiff = 3,
+ Png = 4,
+ Rtf = 5,
+ Rtfd = 6,
+ Html = 7,
+ TabularText = 8,
+ Font = 9,
+ Ruler = 10,
+ Color = 11,
+ Sound = 12,
+ MultipleTextSelection = 13,
+ TextFinderOptions = 14,
+ Url = 15,
+ FileUrl = 16,
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ CollaborationMetadata = 17,
+ FindPanelSearchOptions = 18,
+ }
+ /// <summary>Extension methods for the <see cref="global::AppKit.NSPasteboardType" /> enumeration.</summary>
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class NSPasteboardTypeExtensions {
+ static IntPtr[] values = new IntPtr [19];
+ [Field ("NSFileContentsPboardType", "AppKit")]
+ internal unsafe static IntPtr NSFileContentsPboardType {
+ get {
+ fixed (IntPtr *storage = &values [0])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSFileContentsPboardType", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeString", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeString {
+ get {
+ fixed (IntPtr *storage = &values [1])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeString", storage);
+ }
+ }
+ [Field ("NSPasteboardTypePDF", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypePDF {
+ get {
+ fixed (IntPtr *storage = &values [2])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypePDF", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeTIFF", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeTIFF {
+ get {
+ fixed (IntPtr *storage = &values [3])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeTIFF", storage);
+ }
+ }
+ [Field ("NSPasteboardTypePNG", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypePNG {
+ get {
+ fixed (IntPtr *storage = &values [4])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypePNG", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeRTF", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeRTF {
+ get {
+ fixed (IntPtr *storage = &values [5])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeRTF", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeRTFD", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeRTFD {
+ get {
+ fixed (IntPtr *storage = &values [6])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeRTFD", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeHTML", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeHTML {
+ get {
+ fixed (IntPtr *storage = &values [7])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeHTML", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeTabularText", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeTabularText {
+ get {
+ fixed (IntPtr *storage = &values [8])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeTabularText", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeFont", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeFont {
+ get {
+ fixed (IntPtr *storage = &values [9])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeFont", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeRuler", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeRuler {
+ get {
+ fixed (IntPtr *storage = &values [10])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeRuler", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeColor", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeColor {
+ get {
+ fixed (IntPtr *storage = &values [11])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeColor", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeSound", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeSound {
+ get {
+ fixed (IntPtr *storage = &values [12])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeSound", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeMultipleTextSelection", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeMultipleTextSelection {
+ get {
+ fixed (IntPtr *storage = &values [13])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeMultipleTextSelection", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeTextFinderOptions", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeTextFinderOptions {
+ get {
+ fixed (IntPtr *storage = &values [14])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeTextFinderOptions", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeURL", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeURL {
+ get {
+ fixed (IntPtr *storage = &values [15])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeURL", storage);
+ }
+ }
+ [Field ("NSPasteboardTypeFileURL", "AppKit")]
+ internal unsafe static IntPtr NSPasteboardTypeFileURL {
+ get {
+ fixed (IntPtr *storage = &values [16])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSPasteboardTypeFileURL", storage);
+ }
+ }
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Field ("NSPasteboardTypeCollaborationMetadata", "SharedWithYou")]
+ internal unsafe static IntPtr NSPasteboardTypeCollaborationMetadata {
+ get {
+ fixed (IntPtr *storage = &values [17])
+ return Dlfcn.CachePointer (Libraries.SharedWithYou.Handle, "NSPasteboardTypeCollaborationMetadata", storage);
+ }
+ }
+ [Field ("NSFindPanelSearchOptionsPboardType", "AppKit")]
+ internal unsafe static IntPtr NSFindPanelSearchOptionsPboardType {
+ get {
+ fixed (IntPtr *storage = &values [18])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSFindPanelSearchOptionsPboardType", storage);
+ }
+ }
+ /// <summary>Retrieves the <see cref="global::Foundation.NSString" /> constant that describes <paramref name="self" />.</summary>
+ /// <param name="self">The instance on which this method operates.</param>
+ public static NSString? GetConstant (this NSPasteboardType self)
+ {
+ IntPtr ptr = IntPtr.Zero;
+ switch ((int) self) {
+ case 0: // NSPasteboardType.FileContents
+ ptr = NSFileContentsPboardType;
+ break;
+ case 1: // NSPasteboardType.String
+ ptr = NSPasteboardTypeString;
+ break;
+ case 2: // NSPasteboardType.Pdf
+ ptr = NSPasteboardTypePDF;
+ break;
+ case 3: // NSPasteboardType.Tiff
+ ptr = NSPasteboardTypeTIFF;
+ break;
+ case 4: // NSPasteboardType.Png
+ ptr = NSPasteboardTypePNG;
+ break;
+ case 5: // NSPasteboardType.Rtf
+ ptr = NSPasteboardTypeRTF;
+ break;
+ case 6: // NSPasteboardType.Rtfd
+ ptr = NSPasteboardTypeRTFD;
+ break;
+ case 7: // NSPasteboardType.Html
+ ptr = NSPasteboardTypeHTML;
+ break;
+ case 8: // NSPasteboardType.TabularText
+ ptr = NSPasteboardTypeTabularText;
+ break;
+ case 9: // NSPasteboardType.Font
+ ptr = NSPasteboardTypeFont;
+ break;
+ case 10: // NSPasteboardType.Ruler
+ ptr = NSPasteboardTypeRuler;
+ break;
+ case 11: // NSPasteboardType.Color
+ ptr = NSPasteboardTypeColor;
+ break;
+ case 12: // NSPasteboardType.Sound
+ ptr = NSPasteboardTypeSound;
+ break;
+ case 13: // NSPasteboardType.MultipleTextSelection
+ ptr = NSPasteboardTypeMultipleTextSelection;
+ break;
+ case 14: // NSPasteboardType.TextFinderOptions
+ ptr = NSPasteboardTypeTextFinderOptions;
+ break;
+ case 15: // NSPasteboardType.Url
+ ptr = NSPasteboardTypeURL;
+ break;
+ case 16: // NSPasteboardType.FileUrl
+ ptr = NSPasteboardTypeFileURL;
+ break;
+ case 17: // NSPasteboardType.CollaborationMetadata
+ ptr = NSPasteboardTypeCollaborationMetadata;
+ break;
+ case 18: // NSPasteboardType.FindPanelSearchOptions
+ ptr = NSFindPanelSearchOptionsPboardType;
+ break;
+ }
+ return (NSString?) Runtime.GetNSObject (ptr);
+ }
+ /// <summary>Retrieves the <see cref="global::AppKit.NSPasteboardType" /> value named by <paramref name="constant" />.</summary>
+ /// <param name="constant">The name of the constant to retrieve.</param>
+ public static NSPasteboardType GetValue (NSString constant)
+ {
+ if (constant is null)
+ throw new ArgumentNullException (nameof (constant));
+ if (constant.IsEqualTo (NSFileContentsPboardType))
+ return NSPasteboardType.FileContents;
+ if (constant.IsEqualTo (NSPasteboardTypeString))
+ return NSPasteboardType.String;
+ if (constant.IsEqualTo (NSPasteboardTypePDF))
+ return NSPasteboardType.Pdf;
+ if (constant.IsEqualTo (NSPasteboardTypeTIFF))
+ return NSPasteboardType.Tiff;
+ if (constant.IsEqualTo (NSPasteboardTypePNG))
+ return NSPasteboardType.Png;
+ if (constant.IsEqualTo (NSPasteboardTypeRTF))
+ return NSPasteboardType.Rtf;
+ if (constant.IsEqualTo (NSPasteboardTypeRTFD))
+ return NSPasteboardType.Rtfd;
+ if (constant.IsEqualTo (NSPasteboardTypeHTML))
+ return NSPasteboardType.Html;
+ if (constant.IsEqualTo (NSPasteboardTypeTabularText))
+ return NSPasteboardType.TabularText;
+ if (constant.IsEqualTo (NSPasteboardTypeFont))
+ return NSPasteboardType.Font;
+ if (constant.IsEqualTo (NSPasteboardTypeRuler))
+ return NSPasteboardType.Ruler;
+ if (constant.IsEqualTo (NSPasteboardTypeColor))
+ return NSPasteboardType.Color;
+ if (constant.IsEqualTo (NSPasteboardTypeSound))
+ return NSPasteboardType.Sound;
+ if (constant.IsEqualTo (NSPasteboardTypeMultipleTextSelection))
+ return NSPasteboardType.MultipleTextSelection;
+ if (constant.IsEqualTo (NSPasteboardTypeTextFinderOptions))
+ return NSPasteboardType.TextFinderOptions;
+ if (constant.IsEqualTo (NSPasteboardTypeURL))
+ return NSPasteboardType.Url;
+ if (constant.IsEqualTo (NSPasteboardTypeFileURL))
+ return NSPasteboardType.FileUrl;
+ if (constant.IsEqualTo (NSPasteboardTypeCollaborationMetadata))
+ return NSPasteboardType.CollaborationMetadata;
+ if (constant.IsEqualTo (NSFindPanelSearchOptionsPboardType))
+ return NSPasteboardType.FindPanelSearchOptions;
+ throw new NotSupportedException ($"{constant} has no associated enum value on this platform.");
+ }
+ }
+}
diff --git a/new/mac/mobile/AppKit/NSPasteboardTypeFindPanelSearchOptionKey.g.cs b/new/mac/mobile/AppKit/NSPasteboardTypeFindPanelSearchOptionKey.g.cs
new file mode 100644
index 0000000..eed8b2e
--- /dev/null
+++ b/new/mac/mobile/AppKit/NSPasteboardTypeFindPanelSearchOptionKey.g.cs
@@ -0,0 +1,98 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace AppKit {
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ public enum NSPasteboardTypeFindPanelSearchOptionKey : int {
+ CaseInsensitiveSearch = 0,
+ SubstringMatch = 1,
+ }
+ /// <summary>Extension methods for the <see cref="global::AppKit.NSPasteboardTypeFindPanelSearchOptionKey" /> enumeration.</summary>
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class NSPasteboardTypeFindPanelSearchOptionKeyExtensions {
+ static IntPtr[] values = new IntPtr [2];
+ [Field ("NSFindPanelCaseInsensitiveSearch", "AppKit")]
+ internal unsafe static IntPtr NSFindPanelCaseInsensitiveSearch {
+ get {
+ fixed (IntPtr *storage = &values [0])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSFindPanelCaseInsensitiveSearch", storage);
+ }
+ }
+ [Field ("NSFindPanelSubstringMatch", "AppKit")]
+ internal unsafe static IntPtr NSFindPanelSubstringMatch {
+ get {
+ fixed (IntPtr *storage = &values [1])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSFindPanelSubstringMatch", storage);
+ }
+ }
+ /// <summary>Retrieves the <see cref="global::Foundation.NSString" /> constant that describes <paramref name="self" />.</summary>
+ /// <param name="self">The instance on which this method operates.</param>
+ public static NSString? GetConstant (this NSPasteboardTypeFindPanelSearchOptionKey self)
+ {
+ IntPtr ptr = IntPtr.Zero;
+ switch ((int) self) {
+ case 0: // NSPasteboardTypeFindPanelSearchOptionKey.CaseInsensitiveSearch
+ ptr = NSFindPanelCaseInsensitiveSearch;
+ break;
+ case 1: // NSPasteboardTypeFindPanelSearchOptionKey.SubstringMatch
+ ptr = NSFindPanelSubstringMatch;
+ break;
+ }
+ return (NSString?) Runtime.GetNSObject (ptr);
+ }
+ /// <summary>Retrieves the <see cref="global::AppKit.NSPasteboardTypeFindPanelSearchOptionKey" /> value named by <paramref name="constant" />.</summary>
+ /// <param name="constant">The name of the constant to retrieve.</param>
+ public static NSPasteboardTypeFindPanelSearchOptionKey GetValue (NSString constant)
+ {
+ if (constant is null)
+ throw new ArgumentNullException (nameof (constant));
+ if (constant.IsEqualTo (NSFindPanelCaseInsensitiveSearch))
+ return NSPasteboardTypeFindPanelSearchOptionKey.CaseInsensitiveSearch;
+ if (constant.IsEqualTo (NSFindPanelSubstringMatch))
+ return NSPasteboardTypeFindPanelSearchOptionKey.SubstringMatch;
+ throw new NotSupportedException ($"{constant} has no associated enum value on this platform.");
+ }
+ }
+}
diff --git a/new/mac/mobile/AppKit/NSPasteboardTypeTextFinderOptionKey.g.cs b/new/mac/mobile/AppKit/NSPasteboardTypeTextFinderOptionKey.g.cs
new file mode 100644
index 0000000..65027d0
--- /dev/null
+++ b/new/mac/mobile/AppKit/NSPasteboardTypeTextFinderOptionKey.g.cs
@@ -0,0 +1,98 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace AppKit {
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ public enum NSPasteboardTypeTextFinderOptionKey : int {
+ CaseInsensitiveKey = 0,
+ MatchingTypeKey = 1,
+ }
+ /// <summary>Extension methods for the <see cref="global::AppKit.NSPasteboardTypeTextFinderOptionKey" /> enumeration.</summary>
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class NSPasteboardTypeTextFinderOptionKeyExtensions {
+ static IntPtr[] values = new IntPtr [2];
+ [Field ("NSTextFinderCaseInsensitiveKey", "AppKit")]
+ internal unsafe static IntPtr NSTextFinderCaseInsensitiveKey {
+ get {
+ fixed (IntPtr *storage = &values [0])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSTextFinderCaseInsensitiveKey", storage);
+ }
+ }
+ [Field ("NSTextFinderMatchingTypeKey", "AppKit")]
+ internal unsafe static IntPtr NSTextFinderMatchingTypeKey {
+ get {
+ fixed (IntPtr *storage = &values [1])
+ return Dlfcn.CachePointer (Libraries.AppKit.Handle, "NSTextFinderMatchingTypeKey", storage);
+ }
+ }
+ /// <summary>Retrieves the <see cref="global::Foundation.NSString" /> constant that describes <paramref name="self" />.</summary>
+ /// <param name="self">The instance on which this method operates.</param>
+ public static NSString? GetConstant (this NSPasteboardTypeTextFinderOptionKey self)
+ {
+ IntPtr ptr = IntPtr.Zero;
+ switch ((int) self) {
+ case 0: // NSPasteboardTypeTextFinderOptionKey.CaseInsensitiveKey
+ ptr = NSTextFinderCaseInsensitiveKey;
+ break;
+ case 1: // NSPasteboardTypeTextFinderOptionKey.MatchingTypeKey
+ ptr = NSTextFinderMatchingTypeKey;
+ break;
+ }
+ return (NSString?) Runtime.GetNSObject (ptr);
+ }
+ /// <summary>Retrieves the <see cref="global::AppKit.NSPasteboardTypeTextFinderOptionKey" /> value named by <paramref name="constant" />.</summary>
+ /// <param name="constant">The name of the constant to retrieve.</param>
+ public static NSPasteboardTypeTextFinderOptionKey GetValue (NSString constant)
+ {
+ if (constant is null)
+ throw new ArgumentNullException (nameof (constant));
+ if (constant.IsEqualTo (NSTextFinderCaseInsensitiveKey))
+ return NSPasteboardTypeTextFinderOptionKey.CaseInsensitiveKey;
+ if (constant.IsEqualTo (NSTextFinderMatchingTypeKey))
+ return NSPasteboardTypeTextFinderOptionKey.MatchingTypeKey;
+ throw new NotSupportedException ($"{constant} has no associated enum value on this platform.");
+ }
+ }
+}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment