fileWrappers
ディレクトリラッパに含まれるファイルラッパを辞書で返します
解説
ディレクトリラッパに含まれるファイルラッパを辞書で返します。
返り値
( NSDictionary * )
辞書
引数
フレームワーク
ApplicationKit
クラス
NSFileWrapper
Instance Methods
使用可能
10.0
参照
- filename
- addFileWrapper:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSData *dat = [sender dataWithEPSInsideRect:[sender frame] ]; //ファイルラッパー NSFileWrapper *theWrapper = [[NSFileWrapper alloc] initDirectoryWithFileWrappers:nil]; NSFileWrapper *theWrapper2 = [[NSFileWrapper alloc] initRegularFileWithContents:dat]; [theWrapper setPreferredFilename:@"name1"]; [theWrapper2 setPreferredFilename:@"name2"]; NSLog([theWrapper addFileWrapper:theWrapper2]); NSLog([[theWrapper fileWrappers] description]); } @end