Instance Method インスタンスメソッド

read(from:options:documentAttributes:)

Sets the contents of receiver from the file at url. レシーバの内容をurlでのファイルから設定します。

Declaration 宣言

func read(from url: URL, 
  options: [AnyHashable : Any] = [:], 
documentAttributes dict: AutoreleasingUnsafeMutablePointer<NSDictionary?>?) -> Bool

Parameters パラメータ

url

The URL of the document to open. 開く書類のURL。

options オプション

The option keys for importing the document. For a list of possible values, see “Option keys for importing documents” in NSAttributedString. 書類のインポートに対するオプションキー。可能な値の一覧として、“Option keys for importing documents” をNSAttributedStringで見てください。

documentAttributes

On return, contains the document attributes. For a list of possible values, see “Document Attributes” in NSAttributedString. 戻りでは、書類属性を含みます。可能な値の一覧として、 “Document Attributes” をNSAttributedStringで見てください。

Return Value 戻り値

true if the attributed string is created successfully or false if it was not. 属性付き文字列がうまく作成されるならばtrueまたはそうでなかったならばfalse

Discussion 議論

Filter services can be used to convert the contents of the URL into a format recognized by Cocoa. フィルタサービスは、URLの内容をCocoaによって認識される形式へと変換するために使われることができます。

See Also 参照

Deprecated 非推奨