Forum Xamarin.Mac
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

NSSavePanel broken on MacOS Catalina?

JamesB7JamesB7 USMember ✭✭

Hello,

I am finding that on MacOS Catalina, Xamarin.Mac crashes when calling the NSSavePanel constructor. It says "the native 'init' method returned nil". The same for NSOpenPanel. One suggestion I found online was to use NSSavePanel.SavePanel instead, but this did not work. The save dialog opened just fine in all previous versions What can I do about this?

Thanks!

James

Answers

  • ChrisHamonsChrisHamons USForum Administrator, Xamarin Team Xamurai

    10.15 changed the save and open panels to be out of process. The SavePanel static should work.

    Please file an issue with a small example program.

  • JamesB7JamesB7 USMember ✭✭

    The static does not work if Mono is launched from a shell script. It is unclear why. Is there any way around this?

  • ChrisHamonsChrisHamons USForum Administrator, Xamarin Team Xamurai

    Unknown, Apple made changes to make those out of process to my knowledge. I am unsure what you'd need to do to support that without research.

Sign In or Register to comment.