Fix for Fl_Native_File_Chooser under macOS 10.15 Catalina

14 views
Skip to first unread message

anmol....@gmail.com

unread,
Jul 22, 2021, 7:00:45 PM7/22/21
to fltk.general
  ManoloFLTK:          Fix for Fl_Native_File_Chooser under macOS 10.15 Catalina

From the changelog for 1.3.6.- 

Is this the
 Assertion failure in -[NSSavePanel _attachSandboxExtensions:toURL:orURLs:]
error ?

I am using 1.4 and still get this error.

>>>

Fl_Native_File_Chooser native;

char title[FILENAME_MAX];

char* filename_name, * filename_ext;

native.options(Fl_Native_File_Chooser::NEW_FOLDER |  Fl_Native_File_Chooser::SAVEAS_CONFIRM | Fl_Native_File_Chooser::USE_FILTER_EXT);

        strcpy(title, "Select output file");

        native.title(title);

switch (native.show()) {.  <<------ CRASH

}

Manolo

unread,
Jul 23, 2021, 4:45:56 AM7/23/21
to fltk.general
Le vendredi 23 juillet 2021 à 01:00:45 UTC+2, anmol....@gmail.com a écrit :
  ManoloFLTK:          Fix for Fl_Native_File_Chooser under macOS 10.15 Catalina

From the changelog for 1.3.6.- 

Is this the
 Assertion failure in -[NSSavePanel _attachSandboxExtensions:toURL:orURLs:]
error ?
What error are you refering to?

I am using 1.4 and still get this error.

>>>

Fl_Native_File_Chooser native;

char title[FILENAME_MAX];

char* filename_name, * filename_ext;

native.options(Fl_Native_File_Chooser::NEW_FOLDER |  Fl_Native_File_Chooser::SAVEAS_CONFIRM | Fl_Native_File_Chooser::USE_FILTER_EXT);

        strcpy(title, "Select output file");

        native.title(title);

switch (native.show()) {.  <<------ CRASH

}

No crash here with FLTK 1.4 current and macOS 11.
Please, triple check you compile and link with what you believe.
Reply all
Reply to author
Forward
0 new messages