Hacky way of using Action Extensions on OS X #1
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.
Thanks for open sourcing this project! I've done a bit of work on using Action Extensions in my app and this is what I've come up with: presenting the
NSSharingServicePicker
(with the customisedstyle
value) and then hold on to the resultingNSSharingService
references in a property. This then enables the creation and display of aNSMenu
with the available extensions and also the ability to invoke them. Data then flows back to us in the delegate methods and we're able to write the changed image to a file.