| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/WebKit.framework |
| Availability | Available in Mac OS X v10.3.9 and later.
|
| Companion guide | |
| Declared in | WebResource.h |
A WebResource object represents a downloaded URL. It encapsulates the data of the download as well as other resource properties such as the URL, MIME type and frame name.
Use the initWithData:URL:MIMEType:textEncodingName:frameName: method to initialize a newly created WebResource object. Use the other methods in this class to get the properties of a WebResource object.
Returns the receiver’s data.
- (NSData *)data
WebResource.hReturns the receiver’s frame name.
- (NSString *)frameName
If the receiver does not represent the contents of an entire HTML frame, this method returns nil.
WebResource.hInitializes and returns a web resource instance.
- (id)initWithData:(NSData *)data URL:(NSURL *)URL MIMEType:(NSString *)MIMEType textEncodingName:(NSString *)textEncodingName frameName:(NSString *)frameName
The textEncodingName argument may be nil. Use the frameName argument if the resource represents the contents of an entire HTML frame, otherwise pass nil.
WebResource.hReturns the receiver’s MIME type.
- (NSString *)MIMEType
WebResource.hReturns the receiver’s text encoding name if it exists, nil otherwise.
- (NSString *)textEncodingName
WebResource.hReturns the receiver’s URL.
- (NSURL *)URL
WebResource.h
Last updated: 2006-05-23