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

Get information about available updates #26

Open
lanwen opened this issue Dec 26, 2023 · 0 comments
Open

Get information about available updates #26

lanwen opened this issue Dec 26, 2023 · 0 comments

Comments

@lanwen
Copy link
Contributor

lanwen commented Dec 26, 2023

There is a method CheckForUpdateInformation in the binding, however, it's effectively a no-op, since no callbacks are propagated into the go part:

 `-[SPUUpdaterDelegate updater:didFindValidUpdate:]`
 `-[SPUUpdaterDelegate updaterDidNotFindUpdate:]`

these methods have to be implemented on a delegate which could call a CGO function to propagate that to the main Go application

It would be quite useful to have these bindings, as right now any UI representation of the available update requires a separate implementation, which would duplicate the sparkle functionality.

The initial implementation for the delegate could be found in #24 with an example of calling a cgo callback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant