差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
translation:working:翻訳5 [2016-05-09 23:17] Decomo |
translation:working:翻訳5 [2016-08-24 13:46] (現在) Decomo |
||
---|---|---|---|
行 104: | 行 104: | ||
パラメータは'' | パラメータは'' | ||
- | Your event handler receives three lists: a list of paths, a list of identifiers, | + | イベントハンドラは、パス、識別子、フラグの3つのリストを受け取ります。 |
+ | 実質的に、これらがイベントのリストを表します。 | ||
+ | The first event consists of the first entry taken from each of the arrays, and so on. | ||
+ | イベント処理の必要に応じて、ハンドラはこれらリストをイテレートして下さい。 | ||
- | For each event, you should scan the directory at the specified path, processing its contents as desired. | + | For each event, you should scan the directory at the specified path, processing its contents as desired. |
+ | 通常、そのパスによって示されるディレクトリだけを走査する必要があります。しかしながら、そのケースに当てはまらない3つの状況があります: | ||
- | If an event in a directory occurs at about the same time as one or more events in a subdirectory of that directory, the events may be coalesced into a single event. In this case, you will receive an event with the kFSEventStreamEventFlagMustScanSubDirs | + | * 1つのディレクトリにおいて、サブディレクトリ内で複数のイベントが同時に発生した場合、それらイベントは1つのイベントにまとめられる可能性があります。このケースでは、'' |
- | + | * カーネルとユーザー空間の間でコミュニケーションエラーが発生した場合、'' | |
- | If a communication error occurs between the kernel and the user-space daemon, you may receive an event with either the kFSEventStreamEventFlagKernelDropped | + | |
+ | < | ||
+ | イベントのドロップ時は'' | ||
+ | 上で述べたように、パスのフルスキャンを行うべきかどうかの判断では、 | ||
Note: When an event is dropped, the kFSEventStreamEventFlagMustScanSubDirs flag is also set. Thus, it is not necessary to explicitly check for the dropped event flags when determining whether to perform a full rescan of a path. The dropped event flags are provided purely for informational purposes. | Note: When an event is dropped, the kFSEventStreamEventFlagMustScanSubDirs flag is also set. Thus, it is not necessary to explicitly check for the dropped event flags when determining whether to perform a full rescan of a path. The dropped event flags are provided purely for informational purposes. | ||