macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

documentClassForType:

文書タイプでドキュメントクラスを返します
-(Class)documentClassForType:(NSString *)docType:

解説

文書タイプでドキュメントクラスを返します。

返り値

( Class )

クラス

引数

( NSString * )docType

文書タイプ

フレームワーク

ApplicationKit

クラス

NSDocumentController

Instance Methods

使用可能

10.0

参照

- displayNameForType:
- fileExtensionsFromType:
- typeFromFileExtension:

例文

NSLog([[dController1 documentClassForType:@"txt"] className]);