resourceDataUsingCache:
レシーバのリソースデータを返します
-(NSData *)resourceDataUsingCache:(BOOL)shouldUseCache:
解説
レシーバのリソースデータを返します。
返り値
( NSData * )
データ
引数
( BOOL )shouldUseCache
キャッシュを使うかYES/NO
フレームワーク
Foundation
クラス
NSURL
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSURL *url = [NSURL URLWithString:@""]; [url initWithScheme:@"http" host:@"www.oomori.com" path:@"/index.html"]; [info setStringValue:[[NSString alloc] initWithData:[url resourceDataUsingCache: NO] encoding:NSShiftJISStringEncoding ]]; } @end