| Home 目次>ApplicationKit>NSDocumentController | |
makeDocumentWithContentsOfFile:ofType:
ファイル名とドキュメントタイプで文書を作ります
-(id) makeDocumentWithContentsOfFile:(NSString *)fileName
ofType:(NSString *)docType
【返り値】 | |
| id | ドキュメントオブジェクト(NSDozument) |
| 【パラメータ】 | |
| fileName | ファイル名 |
| docType | ドキュメントタイプ |
【解説】
ファイル名とドキュメントタイプで文書を作ります。
【例文】
doc2 = [dController2 makeDocumentWithContentsOfFile:[opPanel filename]
ofType: @"txt"
];
![]() | |
この記事を評価してください。
| Home 目次>ApplicationKit>NSDocumentController | 修正日2006.12.26 |