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

componentsToDisplayForPath:

Returns an array of strings representing the user-visible components of a given path. 与えられたパスのユーザが見ることができる構成要素を表している文字列からなる配列を返します。

Declaration 宣言

- (NSArray<NSString *> *)componentsToDisplayForPath:(NSString *)path;

Parameters パラメータ

path

A pathname. パス名。

Return Value 戻り値

An array of NSString objects representing the user-visible (for the Finder, Open and Save panels, and so on) components of path. Returns nil if path does not exist. ユーザが見ることができる(Finderでは、「開く」や「保存」パネル、その他のための)pathの構成要素を表しているNSStringオブジェクトからなる配列。パスが存在しないならばnilを返します。

Discussion 議論

These components cannot be used for path operations and are only suitable for display to the user. これらの構成要素は、パス演算に対して使用できません、そしてユーザに表示するために適しているだけです。

See Also 参照

Getting and Setting Attributes 属性の取得と設定