[Sparkle] Where is SUCheckAtStartup?
Andy Matuschak
andy at andymatuschak.org
Wed Feb 13 10:42:45 PST 2008
The current default behavior is as follows:
> I recently realized that checking on startup behavior is basically
> equivalent to and better than a check interval of something like a
> day. So there's no more SUCheckAtStartup. Now it's all just check
> intervals. The default is a day, which will pretty much preserve
> whatever behavior you had before.
>
> Also, I don't like the very first thing I see when I launch a new
> app to be "can I check for updates plz?". Sparkle won't ask for
> permission until the second launch now.
But I want to make this behavior flexible—the delegation stuff in the
other thread will help with that.
- Andy Matuschak
On Feb 12, 2008, at 2:07 PM, Rob Napier wrote:
> Cool, thanks. Do you have a quick rundown of what the new setup will
> be? I need some of this in the near-term, so I'm happy to provide
> patches that align with your direction.
>
> -Rob
>
> On Feb 12, 2008 4:41 PM, Andy Matuschak <andy at andymatuschak.org>
> wrote:
> You're right, I changed around the whole first-launch thing and
> didn't add that back yet. I'll get to it soon...
>
> - Andy Matuschak
>
> On Feb 12, 2008, at 12:56 PM, Rob Napier wrote:
>
>> 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.
>> >
>>
>> _______________________________________________
>> Sparkle mailing list
>> Sparkle at lists.andymatuschak.org
>> http://lists.andymatuschak.org/listinfo.cgi/sparkle-andymatuschak.org
>
>
> _______________________________________________
> Sparkle mailing list
> Sparkle at lists.andymatuschak.org
> http://lists.andymatuschak.org/listinfo.cgi/sparkle-andymatuschak.org
>
>
> _______________________________________________
> Sparkle mailing list
> Sparkle at lists.andymatuschak.org
> http://lists.andymatuschak.org/listinfo.cgi/sparkle-andymatuschak.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andymatuschak.org/pipermail/sparkle-andymatuschak.org/attachments/20080213/8b71b05a/attachment.htm
More information about the Sparkle
mailing list