FLTK logo

[fltk/fltk] MacOS 10.15: NSOpenPanel modal issue (#145)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

[fltk/fltk] MacOS 10.15: NSOpenPanel modal issue (#145) Mohammed Alyousef Sep 30, 2020  
 

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.

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.