download:decideDestinationWithSuggestedFilename:
ダウンロードし始めたときに呼び出されます
-(void)download:(NSURLDownload *)download: decideDestinationWithSuggestedFilename:(NSString *)filename:
解説
ダウンロードし始めたときに呼び出されます。
返り値
( void )
なし
引数
( NSURLDownload * )download
( NSString * )filename
フレームワーク
Foundation
クラス
NSURLDownload
Instance Methods
使用可能
10.2.7(10.2+safari)
参照
例文
- (void)download:(NSURLDownload *)theDownload decideDestinationWithSuggestedFilename:(NSString *)filename { //デスクトップに NSString *path = [[NSHomeDirectory() stringByAppendingPathComponent:@"Desktop"] stringByAppendingPathComponent:filename]; [download setDestination:path allowOverwrite:NO]; }