openDocumentWithContentsOfURL:display:
URLの内容でドキュメントオブジェクトを返します
-(id)openDocumentWithContentsOfURL:(NSURL *)anURL: display:(BOOL)flag:
解説
URLの内容でドキュメントオブジェクトを返します。
返り値
( id )
NSDocumentオブジェクト
引数
( NSURL * )anURL
URL
( BOOL )flag
YES/NO
フレームワーク
ApplicationKit
クラス
NSDocumentController
Instance Methods
使用可能
10.0
参照
- openDocument:
- openUntitledDocumentOfType:display:
- setShouldCreateUI:
例文
doc5 = [dController5 openDocumentWithContentsOfURL:[NSURL fileURLWithPath:[[opPanel filename] stringByExpandingTildeInPath]] display:YES ];