Rapidweaver plugin

Asked by Ronbo

Hi, I have gone through most of the questions and answers and just cannot figure this one out. I am a newbie to Xcode and am developing a plugin for RapidWeaver. I want to integrate Sparkle to pick up any updates. My first question is that there are two types of frameworks that could be attached to my plugin: the normal version and the garbage collection one. I am not really sure which one. I tried both but I still had problems and have reverted back to using the default one. My problem appears to be elsewhere.

In the Interface builder I have created a button which then calls an IBAction called symUpdate. This is working as I make a text field fill with some text. However, in this same area I am trying to instantiate the SUUpdater class but at this point it neither populates the text fields and just appears to hang. The code to instantiate is:

 [[SUUpdater updaterForBundle:[NSBundle bundleForClass:[self class]]] resetUpdateCycle];

My class is called netAudio and when compiled it creates a file called netAudio.rwplugin. The zip file containing the update I have called this netAudio.rwplugin_2.0.zip.

Any help would be appreciated.

Question information

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

Use the garbage collected framework if your RapidWeaver plugin is garbage collected. If it isn't, use the normal framework.

Because you're instantiating the SUUpdater after the app is launched, the user is never asked whether he wants to automatically check for updates, so when you call -resetUpdateCycle, it's not going to do anything.

If you set SUEnableAutomaticChecks to YES in your bundle's Info.plist, it should start working.

Can you help with this problem?

Provide an answer of your own, or ask Ronbo for more information if necessary.

To post a message you must log in.