Revision: 23964
http://sourceforge.net/p/bibdesk/svn/23964
Author: hofman
Date: 2019-07-07 22:06:02 +0000 (Sun, 07 Jul 2019)
Log Message:
-----------
use double for progress
Modified Paths:
--------------
trunk/bibdesk/BDSKItemDownload.h
trunk/bibdesk/BDSKItemDownload.m
Modified: trunk/bibdesk/BDSKItemDownload.h
===================================================================
--- trunk/bibdesk/BDSKItemDownload.h 2019-07-07 21:55:26 UTC (rev 23963)
+++ trunk/bibdesk/BDSKItemDownload.h 2019-07-07 22:06:02 UTC (rev 23964)
@@ -59,7 +59,7 @@
@property (nonatomic, readonly) NSURL *URL;
@property (nonatomic) NSUInteger index;
@property (nonatomic) BOOL replace;
-@property (nonatomic) CGFloat progress;
+@property (nonatomic) double progress;
- (id)initWithLinkedFile:(BDSKLinkedFile *)aLinkedFile
atIndex:(NSUInteger)anIndex replace:(BOOL)aReplace;
- (id)initWithURL:(NSURL *)aURL;
Modified: trunk/bibdesk/BDSKItemDownload.m
===================================================================
--- trunk/bibdesk/BDSKItemDownload.m 2019-07-07 21:55:26 UTC (rev 23963)
+++ trunk/bibdesk/BDSKItemDownload.m 2019-07-07 22:06:02 UTC (rev 23964)
@@ -94,8 +94,8 @@
BDSKDESTROY(download);
}
-- (CGFloat)progress {
- return expectedLength > 0 ? (CGFloat)receivedLength /
(CGFloat)expectedLength : (CGFloat)NSURLResponseUnknownLength;
+- (double)progress {
+ return expectedLength > 0 ? (double)receivedLength /
(double)expectedLength : (CGFloat)NSURLResponseUnknownLength;
}
#pragma mark BDSKDownloaderDelegate
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit