requestWithURL:
URLからNSURLRequestを作って返します
+(id)requestWithURL:(NSURL *)theURL:
解説
URLからNSURLRequestを作って返します。
返り値
( id )
オブジェクト
引数
( NSURL * )theURL
フレームワーク
Foundation
クラス
NSURLRequest
Class Methods
使用可能
10.2.7(10.2+safari)
参照
例文
NSURL *URL = [NSURL URLWithString:[URLField stringValue]]; if (URL) { download = [[WebDownload alloc] initWithRequest:[NSURLRequest requestWithURL:URL] delegate:self];