Sparkle Call Method

Hi,

I’m not sure if this is the right place to ask but I can’t seem to find out how to use a call method for the Sparkle framework. I want to set the update url to something different. This can be done by the method “setFeedURL”.

The SUUpdater.h file looks like this :

[code]- (void)setFeedURL:(NSURL *)feedURL;

  • (NSURL *)feedURL;[/code]
    I tried to call it like this:
call method "setFeedURL" with parameters {"http://www.adiumx.com/sparkle/update.php" as URL}

(Adium is just for testing purposes)

And it didn’t work. Does anyone know how to do this ? Thanks in advance !

Hi,

you can call instance methods (-) only, if there is an instance


set sparkle to call method "sharedUpdater" of class "SUUpdater" -- creates a shared instance
call method "setFeedURL" of sparkle with parameters {"http://www.adiumx.com/sparkle/update.php" as URL}

Thanks, I didn’t know that. It ain’t working though :frowning:
I got the info here https://answers.launchpad.net/sparkle/+question/56974

But I guess this is question is beyond the MacScripter forum ?