On 11 Jun 2008, at 20:42, Greg Ercolano wrote:
> I think my call to NavDialogRun() is the thing that blocks.
> Basically this line in Fl_Native_File_Chooser_MAC.cxx:
>
> // SHOW THE DIALOG
> if ( ( err = NavDialogRun(_ref) ) != 0 ) {
> ..
> }
>
> ..which is the thing that 'blocks'.
>
> I'm not sure if there's something I can do differently that
> would keep FLTK in the event loop somehow. Admittedly I'm
> not all that familiar with the OSX API.
I wonder if it might be safe (on OSX) to spawn an child thread to
hold the native file chooser, and allow the main thread to continue
processing fltk events?
I wouldn't generally advocate showing new window objects from a non-
main thread, but I think it might work on OSX in this case... Not
sure what we could do about the win32 case though (or X / *nix
either) so that might just introduce inconsistencies between platforms.
--
Ian
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk