NSDocumentController:runModalOpenPanel:forTypes:
Home 目次>ApplicationKit>NSDocumentController

runModalOpenPanel:forTypes:

指定した拡張子でオープンパネルをモーダルを開始します


-(int) runModalOpenPanel:(NSOpenPanel *)openPanel
   forTypes:(NSArray *)extensions


【返り値】
   int整数値
【パラメータ】
   openPanelオープンパネル
   extensions拡張子


【解説】

指定した拡張子でオープンパネルをモーダルを開始します。



【例文】


NSLog([NSString stringWithFormat: @"%d" ,
[dController1 runModalOpenPanel:oPanel
forTypes:[NSArray arrayWithObject:
@"txt" ]]
]);


(C) 2000-2007 Satoshi Oomori.
[Apple]

Google
Webwww.oomori.com
Apple_Store_40x120

[ad:Usual day in Japan]

この記事を評価してください。 

良い 

間違いがある 説明がわかりにくい 例文がわかりにくい  

Home 目次>ApplicationKit>NSDocumentController
修正日2006.12.26