fileAttributesToWriteToFile:ofType:saveOperation:
指定したパスと、文書タイプ、保存オプションでファイル属性を返します。
-(NSDictionary *)fileAttributesToWriteToFile:(NSString *)fullDocumentPath:
ofType:(NSString *)documentTypeName:
saveOperation:(NSSaveOperationType)saveOperationType:
解説
指定したパスと、文書タイプ、保存オプションでファイル属性を返します。
返り値
( NSDictionary * )
ファイル属性の辞書
引数
( NSString * )fullDocumentPath
文書パス
( NSString * )documentTypeName
文書タイプ名
( NSSaveOperationType )saveOperationType
保存オプションタイプ
フレームワーク
ApplicationKit
クラス
NSDocument
Instance Methods
使用可能
10.1
参照
例文
- (BOOL)writeWithBackupToFile:(NSString *)fullDocumentPath ofType:(NSString *)docType saveOperation:(NSSaveOperationType)saveOperationType { NSLog([[self fileAttributesToWriteToFile:fullDocumentPath ofType:docType saveOperation:saveOperationType] description]); return YES; }