Legacy Mac OS X Reference Library Apple Developer Connection

Legacy Documentclose button

Important: NSURLClient is deprecated in Mac OS X v10.4 and later. Applications that are intended for deployment on Mac OS X v10.3 or later should use NSURLConnection or NSURLDownload instead; see URL Loading System.


Deprecated NSURLClient Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in Mac OS X v10.4 and later

URL:resourceDataDidBecomeAvailable:

Notifies the URL client that the URL has loaded new data. (required) (Deprecated in Mac OS X v10.4 and later.)

- (void)URL:(NSURL *)sender resourceDataDidBecomeAvailable:(NSData *)newBytes

Parameters
sender

The URL that has loaded new data.

newBytes

The newly loaded data.

Availability
Declared In
NSURL.h

URL:resourceDidFailLoadingWithReason:

Notifies the URL client that the URL failed to load its resource data. (required) (Deprecated in Mac OS X v10.4 and later.)

- (void)URL:(NSURL *)sender resourceDidFailLoadingWithReason:(NSString *)reason

Parameters
sender

The URL that failed to load its resource data.

reason

The reason the load failed.

Availability
Declared In
NSURL.h

URLResourceDidCancelLoading:

Notifies the URL client that the URL stopped loading its resource data because loading was canceled. (required) (Deprecated in Mac OS X v10.4 and later.)

- (void)URLResourceDidCancelLoading:(NSURL *)sender

Parameters
sender

The URL that stopped loading its resource data because loading was canceled.

Availability
Declared In
NSURL.h

URLResourceDidFinishLoading:

Notifies the URL client that the URL has finished loading its resource data. (required) (Deprecated in Mac OS X v10.4 and later.)

- (void)URLResourceDidFinishLoading:(NSURL *)sender

Parameters
sender

The URL that has finished loading its resource data.

Availability
Declared In
NSURL.h


Last updated: 2006-08-01

Did this document help you? Yes It's good, but... Not helpful...