-
Notifications
You must be signed in to change notification settings - Fork 950
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
Allow listening to file open events on macos #1759
Closed
ArturKovacs
wants to merge
20
commits into
rust-windowing:master
from
ArturKovacs:add-macos-open-files
+231
−30
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
e350b04
Allow listening to file open events on macos
ArturKovacs 0489e99
File open events on mac now dispatched as `Event`s
ArturKovacs 14165cd
Update changelog
ArturKovacs a46168b
Ran `cargo fmt`
ArturKovacs 7df4e7a
Fix changelog
ArturKovacs ca85193
Address feedback
ArturKovacs bfc4150
Ran `cargo fmt`
ArturKovacs 9650ff3
Address feedback
ArturKovacs a7e0fd9
Ran `cargo fmt`
ArturKovacs efc6d0c
Use callback for macOS file open events
ArturKovacs d963e11
Fix for the incorrectly merged CHANGELOG
ArturKovacs cf145ff
Address feedback
ArturKovacs 5afda85
Surround user callback with `catch_unwind`
ArturKovacs bce6f17
Address feedback
ArturKovacs 330da43
Change default file open callback behaviour.
ArturKovacs 3a6380c
Allow setting the callback after the event loop creation
ArturKovacs 922bb6e
Update the changelog
ArturKovacs 2fb602a
Update changelog and run fmt
ArturKovacs 20123cb
Use `stop_app_on_panic` in the file open handler
ArturKovacs a50d614
Ran cargo fmt
ArturKovacs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Change default file open callback behaviour.
Now setting the file open callback to `None` behaves identically to not specifying the delegate methods at all.
commit 330da43a33adb530e02e65f69fae4095072146dc
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't entirely sure about adding the application delegates here, but this was the only reasonable way I could make these accessible at
set_file_open_callback()
.