[Sparkle] Where is SUCheckAtStartup?

Rob Napier robnapier at gmail.com
Tue Feb 12 12:56:23 PST 2008


But it appears that now there's no way to set this in Info.plist.
Specifically, there's no way I see to prevent the "do you want to update"
box from popping up.

This patch might help, but I'm not certain this is the best solution. I want
to control the interaction and not have Sparkle pop up during launch for
this product. What I really need in this product is a version that has no
Sparkle updating (Sparkle can ship, but it should do absolutely nothing),
and a different version that has mandatory, synchronous (the user waits
until it's done) upgrading.

In a different product, I would really like to get back to Sparkle popping
up on the first launch. As has been discussed before, I want to make sure
that the user has the most up-to-date software during his first experience.

Thoughts? Since r81, Sparkle actually seems to be reducing its flexibility
somewhat, and I don't think that's the intent.
-Rob

Index: SUUpdater.m
===================================================================
--- SUUpdater.m    (revision 123)
+++ SUUpdater.m    (working copy)
@@ -68,6 +68,10 @@

 - (void)applicationDidFinishLaunching:(NSNotification *)note
 {
+    // If the author has turned off automatic checks in Info.plist, get out
of here.
+    if ([hostBundle objectForInfoDictionaryKey:SUEnableAutomaticChecksKey]
&&
+        [hostBundle objectForInfoDictionaryKey:SUEnableAutomaticChecksKey]
== NO) { return; }
+
     // If the user has been asked about automatic checks and said no, get
out of here.
     if ([[SUUserDefaults standardUserDefaults]
objectForKey:SUEnableAutomaticChecksKey] &&
         [[SUUserDefaults standardUserDefaults]
boolForKey:SUEnableAutomaticChecksKey] == NO) { return; }


On Feb 3, 2008 1:50 PM, Andy Matuschak <andy at andymatuschak.org> wrote:

> Oh, but it also doesn't exist anymore in trunk. I merged the whole
> check at startup and time interval thing into just automatic checks.
> There's more information in the commit logs or on the list here, but
> the new default you want to bind that to is SUEnableAutomaticChecks.
>
> - Andy Matuschak
>
> On Feb 3, 2008, at 4:30 AM, Uli Kusterer wrote:
>
> > On 03.02.2008, at 00:37, William Zumwalt wrote:
> >> I've got sparkle installed, and added a checkbox to to my
> >> preferences panel. Now I'm trying to bind it to the SUCheckAtStartup
> >> method which I do not see.
> >
> >
> >  It's not a method, it's a key in your application's plist. Use
> > NSUserDefaults.
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andymatuschak.org/pipermail/sparkle-andymatuschak.org/attachments/20080212/4fe015c5/attachment.htm 


More information about the Sparkle mailing list