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

initWithURL:options:error:

Initializes a file wrapper instance whose kind is determined by the type of file-system node located by the URL. ファイルラッパーインスタンスを初期化します、それのもつ種類はURLによって位置決めされるファイルシステムノードの型によって決定されます。

Declaration 宣言

- (instancetype)initWithURL:(NSURL *)url 
                    options:(NSFileWrapperReadingOptions)options 
                      error:(NSError * _Nullable *)outError;

Parameters パラメータ

url

URL of the file-system node the file wrapper is to represent. ファイルシステムノードのURL、ファイルラッパーが表すことになります。

options オプション

Option flags for reading the node located at url. See NSFileWrapperReadingOptions for possible values. urlに位置するノードを読み出すためのオプションフラグ。NSFileWrapperReadingOptionsを可能な値のために見てください。

outError

If an error occurs, upon return contains an NSError object that describes the problem. Pass NULL if you do not want error information. エラーが発生するならば、戻りでは、問題を記述するNSErrorオブジェクトを含みます。NULLをあなたがエラー情報を望まないならば渡してください。

Return Value 戻り値

File wrapper for the file-system node at url. May be a directory, file, or symbolic link, depending on what is located at the URL. Returns NO (0) if reading is not successful. urlでのファイルシステムノードに対するファイルラッパー。URLで位置を示されるものが何かに依存して、ディレクトリ、ファイル、またはシンボリックリンクかもしれません。読み出しが成功しないならば、NO (0)。

Discussion 議論

If url is a directory, this method recursively creates file wrappers for each node within that directory. Use the fileWrappers property to get the file wrappers of the nodes contained by the directory. urlがディレクトリならば、このメソッドは、そのディレクトリ内部の各ノードに対して再帰的にファイルラッパーを作成します。fileWrappersプロパティを使って、ディレクトリによって含まれるそれらノードのファイルラッパーを得てください。

See Also 参照

Creating File Wrappers ファイルラッパーを作成する

Related Documentation 関連文書