revery icon indicating copy to clipboard operation
revery copied to clipboard

Native Integration: 'dialog' API

Open bryphe opened this issue 7 years ago • 2 comments

This issue is tracking the integration of a 'dialog' API for displaying native system dialogs for opening, saving files, alerting, etc.

As an inspiration, the Electron API would be a great start: https://electronjs.org/docs/api/dialog

This will require both creating Reason stubs and then using the C FFI to call the appropriate APIs for each platform.

bryphe avatar Jan 23 '19 17:01 bryphe

This lib looks like an interesting one to provide a consistent API for cross-platform file-picker dialogs: https://github.com/mlabbe/nativefiledialog

bryphe avatar Jan 24 '19 17:01 bryphe

Do we need to pull in another dependency for this? It doesn't seem like an enormous amount of code, so we might just want to write our own API for this from scratch.

OhadRau avatar Jan 24 '19 21:01 OhadRau