makeDocumentWithContentsOfFile:ofType:
ファイル名とドキュメントタイプで文書を作ります
-(id)makeDocumentWithContentsOfFile:(NSString *)fileName: ofType:(NSString *)docType:
解説
ファイル名とドキュメントタイプで文書を作ります。
返り値
( id )
ドキュメントオブジェクト(NSDozument)
引数
( NSString * )fileName
ファイル名
( NSString * )docType
ドキュメントタイプ
フレームワーク
ApplicationKit
クラス
NSDocumentController
Instance Methods
使用可能
10.0
参照
- makeUntitledDocumentOfType:
- openDocument:
例文
doc2 = [dController2 makeDocumentWithContentsOfFile:[opPanel filename]
ofType:@"txt"
];