macOS/iOS API解説

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

目次

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
                        ];