MonobjcMonobjc Documented Class Library
NSFileWrapperWritingOptions Enumeration

Writing options that can be set by the writeToURL:options:originalContentsURL:error: method.

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public enum NSFileWrapperWritingOptions
Public Enumeration NSFileWrapperWritingOptions
public enum class NSFileWrapperWritingOptions

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, don't use this option in an override of -[NSDocument writeToURL:ofType:error:], because NSDocument safe-saving is already done atomically.

Available in Mac OS X v10.6 and later.


Whether descendant file wrappers are sent the setFilename: method if the writing succeeds.

This option is necessary when your application passes a URL in the originalContentsURL parameter to the writeToURL:options:originalContentsURL:error: method. Without using this option (and reusing child file wrappers properly), subsequent invocations of writeToURL:options:originalContentsURL:error: would not be able to reliably create hard links in a new file package, because the record of names in the old file package would be out of date.

Available in Mac OS X v10.6 and later.

Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)