Bug 57718 - 5 methods on NSApplication are uncallable due to binding mistakes
Summary: 5 methods on NSApplication are uncallable due to binding mistakes
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) ()
Version: Master
Hardware: PC Mac OS
: High normal
Target Milestone: 15.4
Assignee: Chris Hamons
Depends on:
Reported: 2017-06-23 17:03 UTC by Chris Hamons
Modified: 2017-09-27 11:33 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Chris Hamons 2017-06-23 17:03:29 UTC
These were accidentally added on NSApplicationDelegate instead of NSApplication. They crash if you call them on the delegate w\ the obvious selector not recognized bit.

		[Export ("registerServicesMenuSendTypes:returnTypes:"), EventArgs ("NSApplicationRegister")]
		void RegisterServicesMenu (string [] sendTypes, string [] returnTypes);

		[Export ("writeSelectionToPasteboard:types:"), DelegateName ("NSApplicationSelection"), DefaultValue (false)]
		bool WriteSelectionToPasteboard (NSPasteboard board, string [] types);

		[Export ("readSelectionFromPasteboard:"), DelegateName ("NSPasteboardPredicate"), DefaultValue (false)]
		bool ReadSelectionFromPasteboard (NSPasteboard pboard);

		[Export ("orderFrontStandardAboutPanel:")]
		void OrderFrontStandardAboutPanel (NSObject sender);

		[Export ("orderFrontStandardAboutPanelWithOptions:")]
		void OrderFrontStandardAboutPanelWithOptions (NSDictionary optionsDictionary);

It is fixed in XAMCORE_4_0 but today they are uncallable.
Comment 1 Chris Hamons 2017-06-23 17:06:41 UTC
We'll likely need something like this:

Comment 2 Chris Hamons 2017-08-09 17:26:21 UTC
Comment 3 Chris Hamons 2017-08-10 13:48:11 UTC
https://github.com/xamarin/xamarin-macios/pull/2474 for 15.4
Comment 5 Chris Hamons 2017-09-11 19:55:51 UTC
This was fixed in 15.4, QA made a mistake. They corrected it but forgot to remove the tag.