Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Downloading files and status

Downloading files and status
Thread Tools
Mac Elite
Join Date: Sep 2000
Location: Norfolk, Va
Status: Offline
Reply With Quote
Jun 10, 2003, 12:30 AM
 
I'm toying around with the really cool methods for URL starting with loadResourceData:notifyingClient:etc. But I don't see anywhere where it confirms the file size before download is complete. How do all programs know how much is left to be downloaded?
you are not your signature
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jun 10, 2003, 01:11 AM
 
They use better downloading systems than NSURL, I'd think. I believe CURLHandle has this feature.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Gametes  (op)
Mac Elite
Join Date: Sep 2000
Location: Norfolk, Va
Status: Offline
Reply With Quote
Jun 10, 2003, 02:58 AM
 
MwuHaHAHAHA!!!!!

They know not the power they have unleashed!

(sorry it's VERY late)
you are not your signature
     
Mac Enthusiast
Join Date: Oct 2001
Status: Offline
Reply With Quote
Jun 13, 2003, 01:50 PM
 
NSURLHandle does it.

- (void)URLHandle:(NSURLHandle *)sender resourceDataDidBecomeAvailable:(NSData *)newBytes {

int size = [[sender propertyForKeyIfAvailable:@"content-length"] intValue];

}
(Last edited by 3R1C; Nov 10, 2003 at 10:02 PM. )
3R1C
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:41 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2