Instance Method

URLHandleUsingCache:

Returns a URL handle to service the receiver.

Declaration

- (NSURLHandle *)URLHandleUsingCache:(BOOL)shouldUseCache;

Parameters

shouldUseCache

Whether to use a cached URL handle. If shouldUseCache is YES, the cache is searched for a URL handle that has serviced the receiver or another identical URL. If shouldUseCache is NO, a newly instantiated handle is returned, even if an equivalent URL has been loaded.

Return Value

A URL handle to service the receiver.

Discussion

Sophisticated clients use the URL handle directly for additional control.

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
- loadResourceDataNotifyingClient:usingCache:

Loads the receiver’s resource data in the background.

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