I am using the simpleFTPsample of apple. I want to display a progress bar of the file being downloaded. I understand it needs to be done in:
- (void)stream:(NSStream *)aStream handleEvent:(NSStreamEvent)eventCode
under the case:
case NSStreamEventOpenCompleted:
how do i retrive the file size from the NSInputStream?
I have also tried:
i have set:
[self.networkStream setProperty:@"YES" forKey:(id)kCFStreamPropertyFTPFetchResourceInfo];
and then:
NSLog(@"size: %@",[self.networkStream propertyForKey:(id)kCFStreamPropertyFTPResourceSize]);
but the result is null...