Inherits from | |
Conforms to | |
Framework | /System/Library/Frameworks/Foundation.framework |
Availability | Available in Mac OS X v10.0 and later. |
Declared in | NSURLHandle.h |
NSURLHandle
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.
NSURLHandle
declares the programmatic interface for an object that accesses and manages resource data indicated by an NSURL
object. A single NSURLHandle
can service multiple equivalent NSURL
objects, but only if these URLs map to the same resource.
Cocoa provides private concrete subclasses to handle HTTP and file URL schemes. If you want to implement support for additional URL schemes, you would do so by creating a subclass of NSURLHandle
. You can use NSURL
and NSURLHandle
to download from FTP sites without subclassing.
+ cachedHandleForURL:
Deprecated in Mac OS X v10.4 and later
– initWithURL:cached:
Deprecated in Mac OS X v10.4 and later
+ canInitWithURL:
Deprecated in Mac OS X v10.4 and later
+ registerURLHandleClass:
Deprecated in Mac OS X v10.4 and later
+ URLHandleClassForURL:
Deprecated in Mac OS X v10.4 and later
– addClient:
Deprecated in Mac OS X v10.4 and later
– removeClient:
Deprecated in Mac OS X v10.4 and later
– propertyForKey:
Deprecated in Mac OS X v10.4 and later
– propertyForKeyIfAvailable:
Deprecated in Mac OS X v10.4 and later
– writeProperty:forKey:
Deprecated in Mac OS X v10.4 and later
– availableResourceData
Deprecated in Mac OS X v10.4 and later
– backgroundLoadDidFailWithReason:
Deprecated in Mac OS X v10.4 and later
– beginLoadInBackground
Deprecated in Mac OS X v10.4 and later
– cancelLoadInBackground
Deprecated in Mac OS X v10.4 and later
– didLoadBytes:loadComplete:
Deprecated in Mac OS X v10.4 and later
– endLoadInBackground
Deprecated in Mac OS X v10.4 and later
– expectedResourceDataSize
Deprecated in Mac OS X v10.4 and later
– failureReason
Deprecated in Mac OS X v10.4 and later
– flushCachedData
Deprecated in Mac OS X v10.4 and later
– loadInBackground
Deprecated in Mac OS X v10.4 and later
– loadInForeground
Deprecated in Mac OS X v10.4 and later
– resourceData
Deprecated in Mac OS X v10.4 and later
– status
Deprecated in Mac OS X v10.4 and later
– writeData:
Deprecated in Mac OS X v10.4 and later
These following constants are defined by NSURLHandle
and are returned by status
.
typedef enum { NSURLHandleNotLoaded = 0, NSURLHandleLoadSucceeded, NSURLHandleLoadInProgress, NSURLHandleLoadFailed } NSURLHandleStatus;
NSURLHandleNotLoaded
The resource data has not been loaded. (Deprecated. Use NSURLConnection
or NSURLDownload
instead; see URL Loading System.)
Available in Mac OS X v10.0 and later.
Declared in NSURLHandle.h
.
NSURLHandleLoadSucceeded
The resource data was successfully loaded. (Deprecated. Use NSURLConnection
or NSURLDownload
instead; see URL Loading System.)
Available in Mac OS X v10.0 and later.
Declared in NSURLHandle.h
.
NSURLHandleLoadInProgress
The resource data is in the process of loading. (Deprecated. Use NSURLConnection
or NSURLDownload
instead; see URL Loading System.)
Available in Mac OS X v10.0 and later.
Declared in NSURLHandle.h
.
NSURLHandleLoadFailed
The resource data failed to load. (Deprecated. Use NSURLConnection
or NSURLDownload
instead; see URL Loading System.)
Available in Mac OS X v10.0 and later.
Declared in NSURLHandle.h
.
NSURLHandle.h
© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-02-04)