MonobjcMonobjc Documented Class Library
WriteToFileAtomicallyUpdateFilenames Method (node, atomically, updateNames)
NamespacesMonobjc.AppKitNSFileWrapperWriteToFileAtomicallyUpdateFilenames(NSString, Boolean, Boolean)

Writes a file wrapper’s contents to a given file-system node. (Deprecated in Mac OS X v10.6. Use writeToURL:options:originalContentsURL:error: instead.)

Original signature is '- (BOOL)writeToFile:(NSString *)node atomically:(BOOL)atomically updateFilenames:(BOOL)updateNames'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
[ObsoleteAttribute("Deprecated in Mac OS X v10.6. Use writeToURL:options:originalContentsURL:error: instead.")]
public virtual bool WriteToFileAtomicallyUpdateFilenames(
	NSString node,
	bool atomically,
	bool updateNames
)
<ObsoleteAttribute("Deprecated in Mac OS X v10.6. Use writeToURL:options:originalContentsURL:error: instead.")> _
Public Overridable Function WriteToFileAtomicallyUpdateFilenames ( _
	node As NSString, _
	atomically As Boolean, _
	updateNames As Boolean _
) As Boolean
[ObsoleteAttribute(L"Deprecated in Mac OS X v10.6. Use writeToURL:options:originalContentsURL:error: instead.")]
public:
virtual bool WriteToFileAtomicallyUpdateFilenames(
	NSString^ node, 
	bool atomically, 
	bool updateNames
)
Parameters
node (NSString)
Pathname of the file-system node to which the receiver’s contents are written.
atomically (Boolean)
YES to write the file safely so that:
updateNames (Boolean)
YES to update the receiver’s filenames (its filename and—for directory file wrappers—the filenames of its sub–file wrappers) be changed to the filenames of the corresponding nodes in the file system, after a successful write operation. Use this in Save or Save As operations.
Return Value
YES when the write operation is successful, NO otherwise.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

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