Instance Method

loadResourceDataNotifyingClient:usingCache:

Loads the receiver’s resource data in the background.

Declaration

- (void)loadResourceDataNotifyingClient:(id)client usingCache:(BOOL)shouldUseCache;

Parameters

client

The client of the loading operation. client is notified of the receiver’s progress loading the resource data using the NSURLClient informal protocol. The NSURLClient messages are delivered on the current thread and require the run loop to be running.

shouldUseCache

Whether the URL should use cached resource data from an already loaded URL that refers to the same resource. If YES, the cache is consulted when loading data. If NO, the data is always loaded directly, without consulting the cache.

Discussion

A given NSURL object can perform only one background load at a time.

Special Considerations

Use the NSURLSession or NSURLConnection classes for loading content from remote URLs.

See Also

Deprecated

- initWithScheme:host:path:

Initializes a newly created NSURL with a specified scheme, host, and path.

Deprecated
- URLHandleUsingCache:

Returns a URL handle to service the receiver.

Deprecated
- resourceDataUsingCache:

Returns the receiver’s resource data, loading it if necessary.

Deprecated
- setResourceData:

Attempts to set the resource data for the receiver.

Deprecated
- propertyForKey:

Returns the specified property of the receiver’s resource.

Deprecated
- setProperty:forKey:

Changes the specified property of the receiver’s resource.

Deprecated