[Previous] [Up] [Next]

NSURL

Authors

Richard Frith-Macdonald

Version: $Revision$

Date: $Date$

NSURL

NSURL

Declared in: Foundation/NSURL.h

Inherits from: NSObject

Conforms to: NSCoding


Instance Variables

Methods


Class Methods

URLWithString:

+ (id) URLWithString: (NSString*)URLString;
Initializes with a string as specified in RFCs 1738 and 1808

URLWithString:relativeToURL:

+ (id) URLWithString: (NSString*)URLString relativeToURL: (NSURL*)baseURL;
Initializes relative to a base URL, with a string as specified in RFCs 1738 and 1808

fileURLWithPath:

+ (id) fileURLWithPath: (NSString*)path;
Initializes as a file schem URL with the specified path.

Instances Methods

loadResourceDataNotifyingClient:usingCache:

- (void) loadResourceDataNotifyingClient: (id)client usingCache: (BOOL)shouldUseCache;
Loads the resource data for the specified URL.

If shouldUseCache is YES then an attempt will be made to locate a cached NSURLHandle to provide the resource data, otherwise a new handle will be created and cached.

If the handle does not have the data available, it will be asked to load the data in the background by calling its loadInBackground method.

The specified client (if non-nil) will be set up to recieve notifications of the progress fo the background load process.


parameterString

- (NSString*) parameterString;

password

- (NSString*) password;

path

- (NSString*) path;

port

- (NSNumber*) port;

propertyForKey:

- (id) propertyForKey: (NSString*)propertyKey;

query

- (NSString*) query;

relativePath

- (NSString*) relativePath;

relativeString

- (NSString*) relativeString;

resourceDataUsingCache:

- (NSData*) resourceDataUsingCache: (BOOL)shouldUseCache;

resourceSpecifier

- (NSString*) resourceSpecifier;

scheme

- (NSString*) scheme;

setProperty:

- (BOOL) setProperty: (id)property;

setResourceData:

- (BOOL) setResourceData: (NSData*)data;

standardizedURL

- (NSURL*) standardizedURL;

user

- (NSString*) user;