Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native Integration: 'dialog' API #249

Open
bryphe opened this issue Jan 23, 2019 · 2 comments
Open

Native Integration: 'dialog' API #249

bryphe opened this issue Jan 23, 2019 · 2 comments
Labels
A-native Area: Native platform integration A-primitives Area: Primitives, the basic building blocks help wanted Extra attention is needed

Comments

@bryphe
Copy link
Member

bryphe commented Jan 23, 2019

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 bryphe added help wanted Extra attention is needed A-native Area: Native platform integration labels Jan 23, 2019
@bryphe
Copy link
Member Author

bryphe commented Jan 24, 2019

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

@OhadRau
Copy link
Collaborator

OhadRau commented Jan 24, 2019

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.

@glennsl glennsl added the A-primitives Area: Primitives, the basic building blocks label Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-native Area: Native platform integration A-primitives Area: Primitives, the basic building blocks help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants