Permalink
Browse files

update cdedits

  • Loading branch information...
1 parent e6bde7c commit 58e372280290a572b6bc5e61636fffb558e1c6d0 @sakrist committed Oct 13, 2012
@@ -1,9 +1,9 @@
//
// UIDownloadBar.h
-// Old Radio
+// UIDownloadBar
//
-// Created by Yuliya Sosnenko on 7/8/10.
-// Copyright 2010 __MyCompanyName__. All rights reserved.
+// Created by SAKrisT on 7/8/10.
+// Copyright 2010 www.developers-life.com. All rights reserved.
//
#import <Foundation/Foundation.h>
@@ -37,7 +37,6 @@
@property (assign) BOOL operationIsOK;
@property (assign) BOOL appendIfExist;
-//@property (nonatomic, copy) NSString *fileUrlPath;
@property (nonatomic, readonly) NSMutableData* receivedData;
@property (nonatomic, readonly, retain) NSURLRequest* DownloadRequest;
@@ -1,9 +1,9 @@
//
// UIDownloadBar.m
-// Old Radio
+// UIDownloadBar
//
-// Created by Yuliya Sosnenko on 7/8/10.
-// Copyright 2010 __MyCompanyName__. All rights reserved.
+// Created by SAKrisT on 7/8/10.
+// Copyright 2010 www.developers-life.com. All rights reserved.
//
#import "UIDownloadBar.h"
@@ -18,7 +18,6 @@ @implementation UIDownloadBar
percentComplete,
operationIsOK,
appendIfExist,
-//fileUrlPath,
possibleFilename;
- (void) forceStop {
@@ -28,7 +27,7 @@ - (void) forceStop {
- (void) forceContinue {
operationBreaked = NO;
- NSLog(@"%f",bytesReceived);
+// NSLog(@"%f",bytesReceived);
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL: downloadUrl];
[request addValue: [NSString stringWithFormat: @"bytes=%.0f-", bytesReceived ] forHTTPHeaderField: @"Range"];
@@ -88,10 +87,6 @@ - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)err
[connection release];
}
-//- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response {
-// expectedBytes = [response expectedContentLength];
-// NSLog(@"DID RECEIVE RESPONSE");
-//}
- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response {
@@ -128,7 +123,6 @@ - (void)connectionDidFinishLoading:(NSURLConnection *)connection {
[self.delegate downloadBar:self didFinishWithData:self.receivedData suggestedFilename:localFilename];
operationFinished = YES;
NSLog(@"Connection did finish loading...");
- //[connection release];
}
@@ -137,7 +131,6 @@ - (void)dealloc {
[localFilename release];
[receivedData release];
[DownloadRequest release];
-// [DownloadConnection release];
[super dealloc];
}
@@ -2,7 +2,7 @@
// UIDownloadBarAppDelegate.h
// UIDownloadBar
//
-// Created by Yuliya Sosnenko on 4/28/10.
+// Created by SAKrisT on 4/28/10.
// Copyright __MyCompanyName__ 2010. All rights reserved.
//
@@ -2,7 +2,7 @@
// UIDownloadBarAppDelegate.m
// UIDownloadBar
//
-// Created by Yuliya Sosnenko on 4/28/10.
+// Created by SAKrisT on 4/28/10.
// Copyright __MyCompanyName__ 2010. All rights reserved.
//
View
@@ -35,7 +35,7 @@ How to use:
---
-Version 1.0
+Version 1.2
License: BSD

0 comments on commit 58e3722

Please sign in to comment.