jivadevoe/RandomLib — pull request #2 by marianoabdala (2013-04-14 23:59:53+00:00)
Title: Minor improvement to the FileDownloader class.

Made the FileDownloader report progress to the delegate only if it responds to the downloader:downloadProgressWasUpdatedTo: method, since it's optional, and if the expected lenght is known, since not all servers support this feature.

Before this change, if FileDownloder's delegate didn't implement the downloader:downloadProgressWasUpdatedTo: it would crash. I'm sorry I introduced the bug. I'm used to having my delegates' methods mostly required.