Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update cdedits

  • Loading branch information...
commit 58e372280290a572b6bc5e61636fffb558e1c6d0 1 parent e6bde7c
@sakrist authored
View
7 Classes/DownloadBar/UIDownloadBar.h
@@ -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;
View
15 Classes/DownloadBar/UIDownloadBar.m
@@ -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];
}
View
2  Classes/UIDownloadBarAppDelegate.h
@@ -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.
//
View
2  Classes/UIDownloadBarAppDelegate.m
@@ -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
2  README.md
@@ -35,7 +35,7 @@ How to use:
---
-Version 1.0
+Version 1.2
License: BSD
Please sign in to comment.
Something went wrong with that request. Please try again.