Instance Property インスタンスプロパティ

generationIdentifier

An opaque generation identifier which can be compared using == to determine if the data in a document has been modified. 不透明生成識別子、それは==を使って比較されて書類の中のデータが修正されたかどうか決定できます。

Declaration 宣言

var generationIdentifier: (NSCopying & NSSecureCoding & NSObjectProtocol)? { get }

Discussion 議論

For URLs which refer to the same file inode, the generation identifier will change when the data in the file’s data fork is changed (changes to extended attributes or other file system metadata do not change the generation identifier). For URLs which refer to the same directory inode, the generation identifier will change when direct children of that directory are added, removed or renamed (changes to the data of the direct children of that directory will not change the generation identifier). The generation identifier is persistent across system restarts. The generation identifier is tied to a specific document on a specific volume and is not transferred when the document is copied to another volume. This property is not supported by all volumes. 同じファイルinodeを参照するURLそれらに対して、ファイルのもつデータフォークの中のデータが変更された時に、生成識別子は変化します(拡張された属性または他のファイルシステムメタデータへの変更は生成識別子を変更しません)。同じディレクトリinodeを参照するURLに対して、生成識別子は、そのディレクトリの直接の子孫が加えられる、取り除かれるまたは改名される時に変化します(そのディレクトリの直接の子孫のデータに対する変更は生成識別子を変更しません)。生成識別子は、システム再始動を越えて持続します。生成識別子は、ある特定のボリューム上の特定の書類に結びつけられます、そしてその書類が別のボリュームにコピーされる時に移し替えられません。このプロパティは、全てのボリュームによってサポートされません。

See Also 参照

Universal Resource Values ユニバーサルリソース値