Initializes and returns a web resource instance.
Original signature is '- (id)initWithData:(NSData *)data URL:(NSURL *)URL MIMEType:(NSString *)MIMEType textEncodingName:(NSString *)textEncodingName frameName:(NSString *)frameName'
Available in Mac OS X v10.3.9 and later.
Declaration Syntax
Parameters
- data (NSData)
- The download data.
- URL (NSURL)
- The download URL.
- MIMEType (NSString)
- The MIME type of the data.
- textEncodingName (NSString)
- The IANA encoding name (for example, “utf-8” or “utf-16”). This parameter may be nil.
- frameName (NSString)
- The name of the frame. Use this parameter if the resource represents the contents of an entire HTML frame; otherwise pass nil.
Return Value
An initialized web resource.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)