fileTypeFromLastRunSavePanel
最後に保存パネルで使われたドキュメントの保存ファイルタイプを返します
解説
最後に保存パネルで使われたドキュメントの保存ファイルタイプを返します。
返り値
( NSString * )
ファイルタイプ
引数
フレームワーク
ApplicationKit
クラス
NSDocument
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { //docはNSDocument [doc runModalSavePanelForSaveOperation:NSSaveOperation delegate:self didSaveSelector:@selector(saveAction:) contextInfo:nil ]; } - (void)saveAction:(id)sender { NSLog([doc fileTypeFromLastRunSavePanel]); } @end