NSURLHandle Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/Foundation.framework |
| Availability | Available in OS X v10.0 and later. |
| Declared in | NSURLHandle.h |
NSURLHandle is deprecated in OS X v10.4 and later. Applications that are intended for deployment on OS X v10.3 or later should use NSURLConnection or NSURLDownload instead; see URL Loading System Programming Guide.
Overview
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.
Tasks
Constructing NSURLHandles
-
+ cachedHandleForURL:Deprecated in OS X v10.4 and later -
– initWithURL:cached:Deprecated in OS X v10.4 and later
Managing Subclasses
-
+ canInitWithURL:Deprecated in OS X v10.4 and later -
+ registerURLHandleClass:Deprecated in OS X v10.4 and later -
+ URLHandleClassForURL:Deprecated in OS X v10.4 and later
Managing Clients
-
– addClient:Deprecated in OS X v10.4 and later -
– removeClient:Deprecated in OS X v10.4 and later
Setting and Getting Resource Properties
-
– propertyForKey:Deprecated in OS X v10.4 and later -
– propertyForKeyIfAvailable:Deprecated in OS X v10.4 and later -
– writeProperty:forKey:Deprecated in OS X v10.4 and later
Loading Resource Data
-
– availableResourceDataDeprecated in OS X v10.4 and later -
– backgroundLoadDidFailWithReason:Deprecated in OS X v10.4 and later -
– beginLoadInBackgroundDeprecated in OS X v10.4 and later -
– cancelLoadInBackgroundDeprecated in OS X v10.4 and later -
– didLoadBytes:loadComplete:Deprecated in OS X v10.4 and later -
– endLoadInBackgroundDeprecated in OS X v10.4 and later -
– expectedResourceDataSizeDeprecated in OS X v10.4 and later -
– failureReasonDeprecated in OS X v10.4 and later -
– flushCachedDataDeprecated in OS X v10.4 and later -
– loadInBackgroundDeprecated in OS X v10.4 and later -
– loadInForegroundDeprecated in OS X v10.4 and later -
– resourceDataDeprecated in OS X v10.4 and later -
– statusDeprecated in OS X v10.4 and later
Writing Resource Data
-
– writeData:Deprecated in OS X v10.4 and later
Constants
NSURLHandleStatus
These following constants are defined by NSURLHandle and are returned by status.
typedef enum {
NSURLHandleNotLoaded = 0,
NSURLHandleLoadSucceeded,
NSURLHandleLoadInProgress,
NSURLHandleLoadFailed
} NSURLHandleStatus;
Constants
NSURLHandleNotLoadedThe resource data has not been loaded. (Deprecated. Use
NSURLConnectionorNSURLDownloadinstead; see URL Loading System Programming Guide.)Available in OS X v10.0 and later.
Declared in
NSURLHandle.h.NSURLHandleLoadSucceededThe resource data was successfully loaded. (Deprecated. Use
NSURLConnectionorNSURLDownloadinstead; see URL Loading System Programming Guide.)Available in OS X v10.0 and later.
Declared in
NSURLHandle.h.NSURLHandleLoadInProgressThe resource data is in the process of loading. (Deprecated. Use
NSURLConnectionorNSURLDownloadinstead; see URL Loading System Programming Guide.)Available in OS X v10.0 and later.
Declared in
NSURLHandle.h.NSURLHandleLoadFailedThe resource data failed to load. (Deprecated. Use
NSURLConnectionorNSURLDownloadinstead; see URL Loading System Programming Guide.)Available in OS X v10.0 and later.
Declared in
NSURLHandle.h.
Availability
- Available in OS X v10.0 and later.
Declared In
NSURLHandle.h© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-02-04)