Newbie looking for help

Asked by David Athay

I am working on a project where I do not need the delivery of the patches done through Sparkle but where I would like to use Sparkle to apply the patches. We have it working but the one part that is eluding us is getting the progress bar to display. I am invoking the SUUIBasedUpdateDriver to apply my updates and I even went so far as to add a check on statusController to see if it was NULL and tried to set it up if was (it was). Everything I have tried has come to naught. I still can't get the progress bar to show up. Any thoughts???

--David Athay

Question information

Language:
English Edit question
Status:
Solved
For:
Sparkle Edit question
Assignee:
No assignee Edit question
Solved by:
David Athay
Solved:
Last query:
Last reply:
Revision history for this message
Andy Matuschak (andymatuschak) said :
#1

I'm afraid I don't quite understand what you're trying to do here. SUUIBasedUpdateDriver is not API: why are you using it directly rather than SUUpdater?

Revision history for this message
David Athay (david-athay) said :
#2

Thanks for responding Andy. I think I worked it out.
I wanted to create a small app that would just apply a patch that was embedded into the app as a resource file.
It works great but I wasn't seeing any UI. When I stepped into the code I found that the statusController was NULL.
I reworked things a bit and alloced the statusController and then things worked fine.

I need to go back and re-evaluate everything. We opted away from SUUpdater because it seemed overly functional for what we needed. We already have a mechanism to check for/deliver our patches. We really just need to apply our patch with some sort of progress bar displayed. Given that, do you think SUUpdater is a good fit?

--David

Revision history for this message
Andy Matuschak (andymatuschak) said :
#3

You're going to want to write a custom SUUpdateDriver subclass to do what you want. I'm afraid I don't have the resources to assist you at this, but it should be possible given the pieces in place. Read over what the other update drivers do and make one to suit your needs.

Revision history for this message
David Athay (david-athay) said :
#4

Thanks Andy. I will look into that.

--David