Deprecated NSURLConnectionDelegate Methods
A method identified as deprecated has been superseded and may become unsupported in the future.
Available in OS X v10.6 through OS X v10.7
connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:
Sent as the body (message data) of a request is transmitted (such as in an http POST request). (required) (Available in OS X v10.6 through OS X v10.7.)
- (void)connection:(NSURLConnection *)connection didSendBodyData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite
Parameters
- connection
The connection sending the message.
- bytesWritten
The number of bytes written in the latest write.
- totalBytesWritten
The total number of bytes written for this connection.
- totalBytesExpectedToWrite
The number of bytes the connection expects to write.
Discussion
This method provides an estimate of the progress of a URL upload.
The value of totalBytesExpectedToWrite may change during the upload if the request needs to be retransmitted due to a lost connection or an authentication challenge from the server.
Availability
- Available in OS X v10.6 through OS X v10.7.
- Available as part of an informal protocol prior to OS X v10.7.
Declared In
NSURLConnection.h© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-05-14)