[Sparkle] Support for custom version comparator?

Andy Matuschak andy at andymatuschak.org
Mon Jun 30 23:35:52 PDT 2008


If you're willing to provide a patch for this, that'd be great!

But the delegate method should probably be  
versionComparatorForHostBundle: so it has some context.

- Andy Matuschak

On Jun 30, 2008, at 11:30 PM, Jeff Johnson wrote:

> Hi. We have a custom version comparator that we'd like to use for  
> our apps. Would it be possible to add support for custom comparators  
> to Sparkle?
>
> One possible implementation would be to add a versionComparator  
> method to both SUUpdater and SUUpdaterDelegateInformalProtocol.  - 
> [SUUpdater versionComparator] would check [[self delegate]  
> versionComparator] and return the result if non-nil, otherwise it  
> would return [SUStandardVersionComparator defaultComparator]. Then  
> the calls to [SUStandardVersionComparator defaultComparator] in  
> SUBasicUpdateDriver.m could be replaced with [[SUUpdater  
> sharedUpdater] versionComparator]. This would allow the delegate to  
> provide a custom version comparator.
>
> We can submit a patch for this functionality, so please let me know  
> whether it's feasible and whether the implementation is appropriate.  
> We could also try a different implementation instead, if you have  
> other suggestions. Thanks!
>
> -Jeff Johnson
>
> _______________________________________________
> 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/20080630/83071cbb/attachment.htm>


More information about the Sparkle mailing list