Running this code works on linux and windows, however it fails to return the filename on macos 10.15:
#include <stdio.h> #include <FL/platform.H> #include <FL/Fl_Window.H> #include <FL/Fl_Native_File_Chooser.H> int main() { fl_open_display(); auto chooser = new Fl_Native_File_Chooser(); chooser->show(); printf("filename: %s\n", chooser->filename()); }
It also gives a warning:
WARNING: <NSOpenPanel: 0x7fd13541bf80> running implicitly; please run panels using NSSavePanel rather than NSApplication.
This issue from xamarin appears similar: xamarin/xamarin-macios#6474
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.