A method identified as deprecated has been superseded and may become unsupported in the future.
Loads the receiver’s resource data in the background. (Deprecated in Mac OS X v10.4.)
- (void)loadResourceDataNotifyingClient:(id)client usingCache:(BOOL)shouldUseCache
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.
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.
A given NSURL object can perform only one background load at a time.
NSURL.h
Returns the specified property of the receiver’s resource. (Deprecated in Mac OS X v10.4.)
- (id)propertyForKey:(NSString *)propertyKey
The key of the desired property.
The value of the property of the receiver's resource for the provided key. Returns nil
if there is no such key.
NSURL.h
Returns the receiver’s resource data, loading it if necessary. (Deprecated in Mac OS X v10.4.)
- (NSData *)resourceDataUsingCache:(BOOL)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.
The receiver's resource data.
If the receiver has not already loaded its resource data, it will attempt to load it as a blocking operation.
NSURL.h
Changes the specified property of the receiver’s resource. (Deprecated in Mac OS X v10.4.)
- (BOOL)setProperty:(id)propertyValue forKey:(NSString *)propertyKey
The new value of the property of the receiver's resource.
The key of the desired property.
Returns YES
if the modification was successful, NO
otherwise.
NSURL.h
Attempts to set the resource data for the receiver. (Deprecated in Mac OS X v10.4.)
- (BOOL)setResourceData:(NSData *)data
The data to set for the URL.
Returns YES
if successful, NO
otherwise.
In the case of a file URL, setting the data involves writing data to the specified file.
NSURL.h
Returns a URL handle to service the receiver. (Deprecated in Mac OS X v10.4.)
- (NSURLHandle *)URLHandleUsingCache:(BOOL)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.
A URL handle to service the receiver.
Sophisticated clients use the URL handle directly for additional control.
cachedHandleForURL:
(NSURLHandle)NSURL.h
© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-02-04)