| Home 目次>ApplicationKit>NSDocumentController | |
fileExtensionsFromType:
文書タイプで拡張子の配列を返します
-(NSArray *) fileExtensionsFromType:(NSString *)docType
【返り値】 | |
| NSArray * |
| 【パラメータ】 | |
| docType | 文書タイプ |
【解説】
文書タイプで拡張子の配列を返します。Info.plistの「書類のタイプ」で設定してあるものが返されます。
【例文】
#import "MyObject.h"
#import "MyDocumentController.h"
@implementation MyObject
- ( IBAction )myAction:( id )sender
{
MyDocumentController *dController1 = [MyDocumentController sharedDocumentController];
NSLog([[dController1 typeFromFileExtension: @"txt" ] description]);
}
@end
![]() | |
この記事を評価してください。
| Home 目次>ApplicationKit>NSDocumentController | 修正日2006.12.26 |