| Home 目次>ApplicationKit>NSDocument | 10.1 |
fileAttributesToWriteToFile:ofType:saveOperation:
指定したパスと、文書タイプ、保存オプションでファイル属性を返します。
-(NSDictionary *) fileAttributesToWriteToFile:(NSString *)fullDocumentPath
ofType:(NSString *)documentTypeName
saveOperation:(NSSaveOperationType)saveOperationType
【返り値】 | |
| NSDictionary * | ファイル属性の辞書 |
| 【パラメータ】 | |
| fullDocumentPath | 文書パス |
| documentTypeName | 文書タイプ名 |
| saveOperationType | 保存オプションタイプ |
【解説】
指定したパスと、文書タイプ、保存オプションでファイル属性を返します。
【例文】
- ( BOOL )writeWithBackupToFile:(NSString *)fullDocumentPath ofType:(NSString *)docType saveOperation:(NSSaveOperationType)saveOperationType
{
NSLog([[ self fileAttributesToWriteToFile:fullDocumentPath ofType:docType saveOperation:saveOperationType] description]);
return YES ;
}
![]() | |
この記事を評価してください。
| Home 目次>ApplicationKit>NSDocument | 修正日2006.12.26 |