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

fileManager:shouldProceedAfterError:linkingItemAtURL:toURL:

Asks the delegate if the operation should continue after an error occurs while linking to the item at the specified URL. 指定されたURLで項目をリンクしている間にエラーが発生する後で、操作は続行するべきか、委任先に尋ねます。

Declaration 宣言

- (BOOL)fileManager:(NSFileManager *)fileManager 
shouldProceedAfterError:(NSError *)error 
   linkingItemAtURL:(NSURL *)srcURL 
              toURL:(NSURL *)dstURL;

Parameters パラメータ

fileManager

The file manager object that attempted to create the link. リンクの作成を試みたファイルマネージャオブジェクト。

error

The error that occurred during the link attempt. リンクの試みの間に発生したエラー。

srcURL

The URL of the attempted link location. 試みられたリンク位置のURL。

dstURL

The URL of the file or directory that was the destination of the hard link. ハードリンクの行き先だったファイルまたはディレクトリのURL。

Return Value 戻り値

YES if the operation should proceed or NO if it should be aborted. If you do not implement this method, the file manager assumes a response of NO. 操作が続行すべきならばYESまたはそれが中止されるべきならばNO。あなたがこのメソッドを実装しないならば、ファイルマネージャは応答はNOだと決めてかかります。

Discussion 議論

The file manager calls this method when there is a problem creating a hard link to the item at the specified location. If you return YES, the file manager continues creating any other links associated with the current operation and ignores the error. ファイルマネージャは、指定された場所での項目へのハードリンクを作成することに問題がある場合に、このメソッドを呼び出します。あなたがYESを返すならば、ファイルマネージャは現在の操作と結び付けられた何らかの他のリンクを作成することを継続します、そしてエラーを無視します。

This method performs the same task as the fileManager:shouldProceedAfterError:linkingItemAtPath:toPath: method and is preferred over that method in macOS 10.6 and later. このメソッドは、fileManager:shouldProceedAfterError:linkingItemAtPath:toPath:メソッドと同じ業務を実行して、そのメソッドより、macOS 10.6以降では好まれます。

See Also 参照

Linking an Item 項目をリンクする

Related Documentation 関連文書