[Previous]
[Up]
[Next]
NSURL
Authors
- Richard Frith-Macdonald
-
Version: $Revision$
Date: $Date$
Declared in: Foundation/NSURL.h
Inherits from: NSObject
Conforms to: NSCoding
Instance Variables
Methods
Class Methods
+ (id) URLWithString: (NSString*)URLString;
Initializes with a string as specified in RFCs 1738 and 1808
+ (id) URLWithString: (NSString*)URLString relativeToURL: (NSURL*)baseURL;
Initializes relative to a base URL, with a string as
specified in RFCs 1738 and 1808
+ (id) fileURLWithPath: (NSString*)path;
Initializes as a file schem URL with the specified path.
Instances Methods
- (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.
- (NSString*) parameterString;
- (NSString*) password;
- (NSString*) path;
- (NSNumber*) port;
- (id) propertyForKey: (NSString*)propertyKey;
- (NSString*) query;
- (NSString*) relativePath;
- (NSString*) relativeString;
- (NSData*) resourceDataUsingCache: (BOOL)shouldUseCache;
- (NSString*) resourceSpecifier;
- (NSString*) scheme;
- (BOOL) setProperty: (id)property;
- (BOOL) setResourceData: (NSData*)data;
- (NSURL*) standardizedURL;
- (NSString*) user;