Package apple.foundation.enums
Class NSFileWrapperWritingOptions
- java.lang.Object
-
- apple.foundation.enums.NSFileWrapperWritingOptions
-
public final class NSFileWrapperWritingOptions extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static longAtomicWhether writing is done atomically.static longWithNameUpdatingWhether descendant file wrappers are sent -setFilename: if the writing succeeds.
-
-
-
Field Detail
-
Atomic
public static final long Atomic
Whether writing is done atomically. You can use this option to ensure that when overwriting a file package the overwriting either completely succeeds or completely fails, with no possibility of leaving the file package in an inconsistent state. Because this option causes additional I/O you shouldn't use it unnecessarily. For example, on Mac OS X you wouldn't use this option in an override of -[NSDocument writeToURL:ofType:error:] because NSDocument's implementation of safe saving already does atomic writing.- See Also:
- Constant Field Values
-
WithNameUpdating
public static final long WithNameUpdating
Whether descendant file wrappers are sent -setFilename: if the writing succeeds. This is necessary when your application passes original contents URLs to -writeToURL:options:originalContentsURL:error:. Without using this and reusing child file wrappers properly subsequent invocations of -writeToURL:options:originalContentsURL:error: wouldn't be able to reliably create hard links in a new file package for performance because the record of names in the old file package would be out of date.- See Also:
- Constant Field Values
-
-