[Sparkle] RSSDownloadFailed Exception Catching?

Andy Matuschak andy at andymatuschak.org
Tue Mar 4 16:59:01 PST 2008


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andymatuschak.org/pipermail/sparkle-andymatuschak.org/attachments/20080304/d8ef58ba/attachment.htm 


More information about the Sparkle mailing list