<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://blog.visuaweb.com/index.php/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
  <title>VisuaBlog - file download</title>
  <link>http://blog.visuaweb.com/index.php/</link>
  <description></description>
  <language>fr</language>
  <pubDate>Mon, 15 Dec 2008 20:24:26 +0100</pubDate>
  <copyright></copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Iphone : VSDownloadManager, gestion des codes des réponses HTTP</title>
    <link>http://blog.visuaweb.com/index.php/post/2007/12/30/Iphone-%3A-VSDownloadManager-gestion-des-codes-des-reponses-HTTP</link>
    <guid isPermaLink="false">urn:md5:9afc75a623e3fbe22b534064a65cbbd1</guid>
    <pubDate>Sun, 30 Dec 2007 13:10:00 +0100</pubDate>
    <dc:creator>Jeremie Engel</dc:creator>
        <category>IPhone</category>
        <category>file download</category><category>IPhone</category><category>Iphone Source</category>    
    <description>    &lt;p&gt;NSURLConnection ne permet pas par défaut de gérer les codes retours des requêtes HTTP. Lorsqu'un 404 Not found se présente il faut le gérer à la main.&lt;/p&gt;


&lt;p&gt;Cette &lt;a href=&quot;http://blog.visuaweb.com/public/Files/VSDownloadManager_V1.1.zip&quot;&gt;version 1.1&lt;/a&gt; intègre la gestion des erreurs HTTP.&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.visuaweb.com/index.php/post/2007/12/30/Iphone-%3A-VSDownloadManager-gestion-des-codes-des-reponses-HTTP#comment-form</comments>
      <wfw:comment>http://blog.visuaweb.com/index.php/post/2007/12/30/Iphone-%3A-VSDownloadManager-gestion-des-codes-des-reponses-HTTP#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.visuaweb.com/index.php/feed/rss2/comments/11</wfw:commentRss>
      </item>
    
  <item>
    <title>iPhone : Télécharger des fichiers avec NSURLConnection (asynchrone)</title>
    <link>http://blog.visuaweb.com/index.php/post/2007/12/29/Telecharger-des-fichiers-sous-iPhone</link>
    <guid isPermaLink="false">urn:md5:d12a51459b0a3cdb1cc9f969fc93eec3</guid>
    <pubDate>Sat, 29 Dec 2007 12:34:00 +0100</pubDate>
    <dc:creator>Jeremie Engel</dc:creator>
        <category>IPhone</category>
        <category>file download</category><category>IPhone</category><category>Iphone Source</category><category>NSURLConnection iPhone</category>    
    <description>    &lt;p&gt;Voici un composant qui permet de télécharger des fichiers de manières asynchrone. L'avantage de cette méthode est, hormis une gestion plus précise des événements de téléchargement, de libérer du temps/machine pour faire autre chose pendant la session de téléchargement. Typiquement, l'ajout d'un progressView à ce composant est assez facile.&lt;/p&gt;
&lt;p&gt;VSDownloadManager utilise NSURLConnection en mode asynchrone (et non NSURLDownload qui n'est pas implémenté sur l'iPhone).&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://blog.visuaweb.com/public/Files/VSDownloadManager.zip&quot;&gt;Téléchargement des sources !&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;Exemple d'utilisation de VSDownloadManager&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #c41a16&quot;&gt;&lt;span style=&quot;color: #643820&quot;&gt;#import &lt;/span&gt;&quot;VSDownloadManager.h&quot;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;....&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;....&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (&lt;span style=&quot;color: #aa0d91&quot;&gt;void&lt;/span&gt;) downloadManagerDemo {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;VSDownloadManager *downloadManager = [VSDownloadManager getInstance];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;// set the delegate that will receive the &quot;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;[downloadManager setDelegate:&lt;span style=&quot;color: #aa0d91&quot;&gt;self&lt;/span&gt;];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;// Empty the current queue&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;[downloadManager clearItems];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;// Adding an element to download&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;VSDownloadManagerItem *dwlItem = [[VSDownloadManagerItem alloc] initWithURL:&lt;span style=&quot;color: #c41a16&quot;&gt;@&quot;http://blog.visuaweb.com/public/Images/springboard.jpeg&quot;&lt;/span&gt; AndFile:&lt;span style=&quot;color: #c41a16&quot;&gt;@&quot;/var/root/springboard.jpeg&quot;&lt;/span&gt; AndText:&lt;span style=&quot;color: #aa0d91&quot;&gt;nil&lt;/span&gt;];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;[downloadManager addItem:dwlItem];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;[dwlItem release];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;// Addning an element to download&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;VSDownloadManagerItem *dwlItem = [[VSDownloadManagerItem alloc] initWithURL:&lt;span style=&quot;color: #c41a16&quot;&gt;@&quot;http://blog.visuaweb.com/public/Files/snap_joe.jpg&quot;&lt;/span&gt; AndFile:&lt;span style=&quot;color: #c41a16&quot;&gt;@&quot;/var/root/joe.jpeg&quot;&lt;/span&gt; AndText:&lt;span style=&quot;color: #aa0d91&quot;&gt;nil&lt;/span&gt;];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;[downloadManager addItem:dwlItem];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;[dwlItem release];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;// Start the download session&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;[downloadManager start];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (&lt;span style=&quot;color: #aa0d91&quot;&gt;void&lt;/span&gt;) VSDownloadManagerDidFinishedDownloadSession:(VSDownloadManager *) sender {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #c41a16&quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;NSLog(&lt;/span&gt;@&quot;Download session finiched!&quot;&lt;span style=&quot;color: #000000&quot;&gt;);&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;} &lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;VSDownloadManager.h&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;//&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;//  VSDownloadManager.h&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;//&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;//  Created by Jeremie Engel on 28/12/07.&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;//  Copyright 2007 VISUAWEB - &lt;a href=&quot;http://blog.visuaweb.com.&quot;&gt;&lt;span style=&quot;color: #0e0eff&quot;&gt;http://blog.visuaweb.com.&lt;/span&gt;&lt;/a&gt; All rights reserved.&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;//&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #c41a16&quot;&gt;&lt;span style=&quot;color: #643820&quot;&gt;#import &lt;/span&gt;&amp;lt;CoreFoundation/CoreFoundation.h&amp;gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #c41a16&quot;&gt;&lt;span style=&quot;color: #643820&quot;&gt;#import &lt;/span&gt;&amp;lt;Foundation/Foundation.h&amp;gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;@interface&lt;/span&gt; VSDownloadManagerItem : NSObject {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;NSString*url;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;NSString*filename;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;NSString*text;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (&lt;span style=&quot;color: #aa0d91&quot;&gt;id&lt;/span&gt;) initWithURL:(NSString*) inURL AndFile:(NSString *) inFilename AndText:(NSString *) inText;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (NSString *) url;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (NSString *) filename;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (NSString *) text;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #aa0d91&quot;&gt;@end&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;@interface&lt;/span&gt; VSDownloadManager : NSObject {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;NSMutableArray*items;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #3f6e74&quot;&gt;VSDownloadManagerItem&lt;span style=&quot;color: #000000&quot;&gt; * currentItem;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;id&lt;/span&gt;delegate;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;NSURLConnection*urlConnection;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;NSMutableData*receivedData;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;int&lt;/span&gt;state;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;+ (&lt;span style=&quot;color: #aa0d91&quot;&gt;void&lt;/span&gt;) initialize;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;+ (&lt;span style=&quot;color: #aa0d91&quot;&gt;id&lt;/span&gt;) getInstance;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;+ (&lt;span style=&quot;color: #aa0d91&quot;&gt;id&lt;/span&gt;) allocWithZone:(NSZone *)zone;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (&lt;span style=&quot;color: #aa0d91&quot;&gt;id&lt;/span&gt;) init;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (&lt;span style=&quot;color: #aa0d91&quot;&gt;void&lt;/span&gt;) addItem:(&lt;span style=&quot;color: #3f6e74&quot;&gt;VSDownloadManagerItem&lt;/span&gt; *) inItem ;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (&lt;span style=&quot;color: #aa0d91&quot;&gt;void&lt;/span&gt;) clearItems ;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (&lt;span style=&quot;color: #aa0d91&quot;&gt;void&lt;/span&gt;) setDelegate:(&lt;span style=&quot;color: #aa0d91&quot;&gt;id&lt;/span&gt;) inDelegate ;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (&lt;span style=&quot;color: #aa0d91&quot;&gt;void&lt;/span&gt;) start ;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #aa0d91&quot;&gt;@end&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;VSDownloadManager.m&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;//&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;//  VSDownloadManager.m&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;//&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;//  Created by Jeremie Engel on 28/12/07.&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;//  Copyright 2007 VISUAWEB - &lt;a href=&quot;http://blog.visuaweb.com.&quot;&gt;&lt;span style=&quot;color: #0e0eff&quot;&gt;http://blog.visuaweb.com.&lt;/span&gt;&lt;/a&gt; All rights reserved.&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;//&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #c41a16&quot;&gt;&lt;span style=&quot;color: #643820&quot;&gt;#import &lt;/span&gt;&quot;VSLog.h&quot;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #c41a16&quot;&gt;&lt;span style=&quot;color: #643820&quot;&gt;#import &lt;/span&gt;&quot;VSDownloadManager.h&quot;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;@implementation&lt;/span&gt; VSDownloadManagerItem&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (&lt;span style=&quot;color: #aa0d91&quot;&gt;id&lt;/span&gt;) initWithURL:(NSString*) inURL AndFile:(NSString *) inFilename AndText:(NSString *) inText {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;if&lt;/span&gt; ((&lt;span style=&quot;color: #aa0d91&quot;&gt;self&lt;/span&gt;=[&lt;span style=&quot;color: #aa0d91&quot;&gt;super&lt;/span&gt; &lt;span style=&quot;color: #26474b&quot;&gt;init&lt;/span&gt;])) {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;[inURL retain];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;url = inURL;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;[inFilename retain];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;filename = inFilename;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;if&lt;/span&gt; (inText) {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;[inText retain] ;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;text = inText;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #aa0d91&quot;&gt;return self&lt;span style=&quot;color: #000000&quot;&gt;;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #aa0d91&quot;&gt;return nil&lt;span style=&quot;color: #000000&quot;&gt;;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (NSString*) url { &lt;span style=&quot;color: #aa0d91&quot;&gt;return&lt;/span&gt; url; }&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (NSString*) filename { &lt;span style=&quot;color: #aa0d91&quot;&gt;return&lt;/span&gt; filename; }&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (NSString*) text { &lt;span style=&quot;color: #aa0d91&quot;&gt;return&lt;/span&gt; text; }&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (NSString *) description {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;return&lt;/span&gt; url;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #aa0d91&quot;&gt;@end&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;/*****************************************************************************/&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;static&lt;/span&gt; VSDownloadManager  *defaultVSDownloadManager = &lt;span style=&quot;color: #aa0d91&quot;&gt;nil&lt;/span&gt;;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;@implementation&lt;/span&gt; VSDownloadManager&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;+ (&lt;span style=&quot;color: #aa0d91&quot;&gt;void&lt;/span&gt;) initialize { }&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;+ (&lt;span style=&quot;color: #aa0d91&quot;&gt;id&lt;/span&gt;) getInstance {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #aa0d91&quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;    &lt;/span&gt;@synchronized&lt;span style=&quot;color: #000000&quot;&gt;(&lt;/span&gt;self&lt;span style=&quot;color: #000000&quot;&gt;) {&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #3f6e74&quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; (&lt;/span&gt;defaultVSDownloadManager&lt;span style=&quot;color: #000000&quot;&gt; == &lt;/span&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;nil&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;) {&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;            [[&lt;/span&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; alloc] &lt;/span&gt;&lt;span style=&quot;color: #26474b&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;]; &lt;/span&gt;// assignment not done here&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;        }&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;    }&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #3f6e74&quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;return&lt;/span&gt;defaultVSDownloadManager&lt;span style=&quot;color: #000000&quot;&gt;;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;+ (&lt;span style=&quot;color: #aa0d91&quot;&gt;id&lt;/span&gt;)allocWithZone:(NSZone *)zone&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;{&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #aa0d91&quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;    &lt;/span&gt;@synchronized&lt;span style=&quot;color: #000000&quot;&gt;(&lt;/span&gt;self&lt;span style=&quot;color: #000000&quot;&gt;) {&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #3f6e74&quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; (&lt;/span&gt;defaultVSDownloadManager&lt;span style=&quot;color: #000000&quot;&gt; == &lt;/span&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;nil&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;) {&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;            &lt;span style=&quot;color: #3f6e74&quot;&gt;defaultVSDownloadManager&lt;/span&gt; = [&lt;span style=&quot;color: #aa0d91&quot;&gt;super&lt;/span&gt; &lt;span style=&quot;color: #26474b&quot;&gt;allocWithZone&lt;/span&gt;:zone];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #3f6e74&quot;&gt;defaultVSDownloadManager&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;;  &lt;/span&gt;// assignment and return on first allocation&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;        }&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;    }&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;return &lt;/span&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;nil&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;; &lt;/span&gt;//on subsequent allocation attempts return nil&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (&lt;span style=&quot;color: #aa0d91&quot;&gt;id&lt;/span&gt;) init {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #c41a16&quot;&gt;&lt;span style=&quot;color: #643820&quot;&gt;NSLog&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;(&lt;/span&gt;@&quot;VSDownloadManager initialize&quot;&lt;span style=&quot;color: #000000&quot;&gt;);&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;if&lt;/span&gt; ((&lt;span style=&quot;color: #aa0d91&quot;&gt;self&lt;/span&gt;=[&lt;span style=&quot;color: #aa0d91&quot;&gt;super&lt;/span&gt; &lt;span style=&quot;color: #26474b&quot;&gt;init&lt;/span&gt;])) {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;items = [[NSMutableArray alloc] &lt;span style=&quot;color: #26474b&quot;&gt;init&lt;/span&gt;];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;//receivedData = [[NSMutableData data] retain];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #aa0d91&quot;&gt;returnself&lt;span style=&quot;color: #000000&quot;&gt;;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (&lt;span style=&quot;color: #aa0d91&quot;&gt;void&lt;/span&gt;) setDelegate:(&lt;span style=&quot;color: #aa0d91&quot;&gt;id&lt;/span&gt;) inDelegate {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;if&lt;/span&gt; (delegate) [delegate release];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;[inDelegate retain];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;delegate = inDelegate;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (&lt;span style=&quot;color: #aa0d91&quot;&gt;void&lt;/span&gt;) addItem:(&lt;span style=&quot;color: #3f6e74&quot;&gt;VSDownloadManagerItem&lt;/span&gt; *) inItem {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;if&lt;/span&gt; (![items containsObject:inItem]) [items addObject:inItem];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (&lt;span style=&quot;color: #aa0d91&quot;&gt;void&lt;/span&gt;) clearItems {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;[items removeAllObjects];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (&lt;span style=&quot;color: #aa0d91&quot;&gt;void&lt;/span&gt;) start {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #c41a16&quot;&gt;&lt;span style=&quot;color: #643820&quot;&gt;NSLog&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;(&lt;/span&gt;@&quot;Starting download&quot;&lt;span style=&quot;color: #000000&quot;&gt;);&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;int&lt;/span&gt; i;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;for&lt;/span&gt; (i=&lt;span style=&quot;color: #1c00cf&quot;&gt;0&lt;/span&gt;; i&amp;lt;[items &lt;span style=&quot;color: #26474b&quot;&gt;count&lt;/span&gt;]; i++) {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;state = &lt;span style=&quot;color: #1c00cf&quot;&gt;1&lt;/span&gt;;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;receivedData = [[NSMutableData alloc] initWithLength: &lt;span style=&quot;color: #1c00cf&quot;&gt;0&lt;/span&gt;];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;currentItem = [items objectAtIndex:i];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:[currentItem &lt;span style=&quot;color: #26474b&quot;&gt;url&lt;/span&gt;]] cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:&lt;span style=&quot;color: #1c00cf&quot;&gt;5&lt;/span&gt;];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;urlConnection = [[NSURLConnection alloc] initWithRequest:request delegate:&lt;span style=&quot;color: #aa0d91&quot;&gt;self&lt;/span&gt;];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;while&lt;/span&gt;(state == &lt;span style=&quot;color: #1c00cf&quot;&gt;1&lt;/span&gt;) {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;[[NSRunLoop currentRunLoop] runUntilDate: [NSDate dateWithTimeIntervalSinceNow: &lt;span style=&quot;color: #1c00cf&quot;&gt;0.1f&lt;/span&gt;] ];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;if&lt;/span&gt; (delegate &amp;amp;&amp;amp; [delegate respondsToSelector:&lt;span style=&quot;color: #aa0d91&quot;&gt;@selector&lt;/span&gt;(&lt;span style=&quot;color: #26474b&quot;&gt;VSDownloadManagerDidFinishedDownloadSession&lt;/span&gt;:)]) {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;[delegate performSelector:&lt;span style=&quot;color: #aa0d91&quot;&gt;@selector&lt;/span&gt;(&lt;span style=&quot;color: #26474b&quot;&gt;VSDownloadManagerDidFinishedDownloadSession&lt;/span&gt;:) withObject: &lt;span style=&quot;color: #aa0d91&quot;&gt;self&lt;/span&gt;];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;/************** NSURLConnection Delegates *****************/&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (&lt;span style=&quot;color: #aa0d91&quot;&gt;void&lt;/span&gt;)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;[receivedData setLength:&lt;span style=&quot;color: #1c00cf&quot;&gt;0&lt;/span&gt;];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (&lt;span style=&quot;color: #aa0d91&quot;&gt;void&lt;/span&gt;)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;    [receivedData appendData:data];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (&lt;span style=&quot;color: #aa0d91&quot;&gt;void&lt;/span&gt;)connection:(NSURLConnection *)connection  didFailWithError:(NSError *)error {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;    [receivedData release];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;[connection release];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;state = -&lt;span style=&quot;color: #1c00cf&quot;&gt;1&lt;/span&gt;;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #c41a16&quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #643820&quot;&gt;NSLog&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;(&lt;/span&gt;@&quot;Connection failed! Error - %@ %@&quot;&lt;span style=&quot;color: #000000&quot;&gt;,&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;          [error localizedDescription],&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;          [[error userInfo] objectForKey:NSErrorFailingURLStringKey]);&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (&lt;span style=&quot;color: #aa0d91&quot;&gt;void&lt;/span&gt;)connectionDidFinishLoading:(NSURLConnection *)connection {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;if&lt;/span&gt; ([currentItem &lt;span style=&quot;color: #26474b&quot;&gt;filename&lt;/span&gt;]) [[NSFileManager defaultManager] createFileAtPath:[currentItem &lt;span style=&quot;color: #26474b&quot;&gt;filename&lt;/span&gt;]  contents:receivedData attributes:&lt;span style=&quot;color: #aa0d91&quot;&gt;nil&lt;/span&gt;] ;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;[connection release];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;    [receivedData release];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;state = &lt;span style=&quot;color: #1c00cf&quot;&gt;0&lt;/span&gt;;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #c41a16&quot;&gt;&lt;span style=&quot;color: #643820&quot;&gt;NSLog&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;(&lt;/span&gt;@&quot;Download finished for %@&quot;&lt;span style=&quot;color: #000000&quot;&gt;, [currentItem &lt;/span&gt;&lt;span style=&quot;color: #26474b&quot;&gt;url&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;]);&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #007400&quot;&gt;/***********************************************************/&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;- (&lt;span style=&quot;color: #aa0d91&quot;&gt;void&lt;/span&gt;) dealloc {&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;if&lt;/span&gt; (receivedData) [receivedData release];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;if&lt;/span&gt; (urlConnection) [urlConnection release];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;[items release];&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #26474b&quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #aa0d91&quot;&gt;super&lt;/span&gt;dealloc&lt;span style=&quot;color: #000000&quot;&gt;];&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco&quot;&gt;}&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #aa0d91&quot;&gt;@end&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description>
    
    
    
          <comments>http://blog.visuaweb.com/index.php/post/2007/12/29/Telecharger-des-fichiers-sous-iPhone#comment-form</comments>
      <wfw:comment>http://blog.visuaweb.com/index.php/post/2007/12/29/Telecharger-des-fichiers-sous-iPhone#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.visuaweb.com/index.php/feed/rss2/comments/10</wfw:commentRss>
      </item>
    
</channel>
</rss>