[Sparkle] RSSDownloadFailed Exception Catching?

Andy Matuschak andy at andymatuschak.org
Tue Mar 4 20:44:43 PST 2008


Hrm. It doesn't log anything in my build. Are you using SVN HEAD or 1.1?

(note to self: I should discourage people from using 1.1 anymore...)

- Andy Matuschak

On Mar 4, 2008, at 6:05 PM, Adhamh Findlay wrote:

> Andy,
>
> That's not what I am seeing.  I'm not initiating a check, just  
> starting up my app with my AirPort connection off.
>
> All I want to do is catch the exception so I don't report it in log  
> files.
>
> On Mar 4, 2008, at 6:59 PM, Andy Matuschak wrote:
>
>> Sparkle only complains to the user about the network being down  
>> when the user actually initiates the check—that is, the user  
>> performed some action in the interface that resulted in the update  
>> check being initiated. So it makes sense that the user should be  
>> given some kind of feedback when the network is down. Are you just  
>> wanting to change the text of the dialog?
>>
>> - Andy Matuschak
>>
>> On Feb 29, 2008, at 9:06 AM, Adhamh Findlay wrote:
>>
>>> Hello,
>>>
>>> My app is using sparkle.  When I turn off my network connections,  
>>> sparkle throws an RSSDownloadException when my app starts up.  I'd  
>>> like to catch this exception instead of just ignoring it.
>>>
>>> Right now I've got a menu item to check for updates that is bound  
>>> to this method:
>>>
>>> - (IBAction) checkForSoftwareUpdates: (id) sender;
>>> {
>>> 	// check network status, if okay proceed.
>>> 	if ( [monitorNetwork isNetworkActive] == NO ) {
>>> 		[monitorNetwork displayNetworkDownSheetForWindow: [self window]];
>>> 	} else {
>>> 		SUUpdater *updater = [[[SUUpdater alloc] init] autorelease];
>>> 		[updater checkForUpdates: sender];
>>> 	}
>>> }
>>>
>>> However, the exception happens before this method is invoked, so I  
>>> can't catch it here.
>>>
>>> Can someone tell me where I should catch this exception or how I  
>>> can otherwise prevent it from getting logged?
>>>
>>> Thanks,
>>>
>>> Adhamh
>>>
>>>
>>>
>>> _______________________________________________
>>> 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/20080304/7745912e/attachment-0001.htm 


More information about the Sparkle mailing list