Skip to content

Instantly share code, notes, and snippets.

@chamons

chamons/foo.diff Secret

Created Jun 23, 2017
Embed
What would you like to do?
diff --git a/src/appkit.cs b/src/appkit.cs
index 40b30d7..55326d8 100644
--- a/src/appkit.cs
+++ b/src/appkit.cs
@@ -753,6 +753,21 @@ namespace XamCore.AppKit {
[Export ("orderFrontStandardAboutPanelWithOptions:")]
void OrderFrontStandardAboutPanelWithOptions (NSDictionary optionsDictionary);
+#else
+ [Export ("registerServicesMenuSendTypes:returnTypes:"), EventArgs ("NSApplicationRegister")]
+ void RegisterServicesMenu2 (string [] sendTypes, string [] returnTypes);
+
+ [Export ("writeSelectionToPasteboard:types:"), DelegateName ("NSApplicationSelection"), DefaultValue (false)]
+ bool WriteSelectionToPasteboard2 (NSPasteboard board, string [] types);
+
+ [Export ("readSelectionFromPasteboard:"), DelegateName ("NSPasteboardPredicate"), DefaultValue (false)]
+ bool ReadSelectionFromPasteboard2 (NSPasteboard pboard);
+
+ [Export ("orderFrontStandardAboutPanel:"), EventArgs ("NSObject")]
+ void OrderFrontStandardAboutPanel2 (NSObject sender);
+
+ [Export ("orderFrontStandardAboutPanelWithOptions:"), EventArgs ("NSDictionary")]
+ void OrderFrontStandardAboutPanelWithOptions2 (NSDictionary optionsDictionary);
#endif
[Mac (10,12)]
@@ -873,18 +888,23 @@ namespace XamCore.AppKit {
void ScreenParametersChanged (NSNotification notification);
#if !XAMCORE_4_0 // Needs to move from delegate in next API break
+ [Obsolete ("Use the 'RegisterServicesMenu2' on NSApplication")]
[Export ("registerServicesMenuSendTypes:returnTypes:"), EventArgs ("NSApplicationRegister")]
void RegisterServicesMenu (string [] sendTypes, string [] returnTypes);
+ [Obsolete ("Use the 'WriteSelectionToPasteboard2' on NSApplication")]
[Export ("writeSelectionToPasteboard:types:"), DelegateName ("NSApplicationSelection"), DefaultValue (false)]
bool WriteSelectionToPasteboard (NSPasteboard board, string [] types);
+ [Obsolete ("Use the 'ReadSelectionFromPasteboard2' on NSApplication")]
[Export ("readSelectionFromPasteboard:"), DelegateName ("NSPasteboardPredicate"), DefaultValue (false)]
bool ReadSelectionFromPasteboard (NSPasteboard pboard);
+ [Obsolete ("Use the 'OrderFrontStandardAboutPanel2' on NSApplication")]
[Export ("orderFrontStandardAboutPanel:"), EventArgs ("NSObject")]
void OrderFrontStandardAboutPanel (NSObject sender);
+ [Obsolete ("Use the 'OrderFrontStandardAboutPanelWithOptions2' on NSApplication")]
[Export ("orderFrontStandardAboutPanelWithOptions:"), EventArgs ("NSDictionary")]
void OrderFrontStandardAboutPanelWithOptions (NSDictionary optionsDictionary);
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment