MonobjcMonobjc Documented Class Library
WriteToFile Method (path)
NamespacesMonobjc.AppKitNSColorListWriteToFile(NSString)

Saves the receiver to a file at the specified path.

Original signature is '- (BOOL)writeToFile:(NSString *)path'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool WriteToFile(
	NSString path
)
Public Overridable Function WriteToFile ( _
	path As NSString _
) As Boolean
public:
virtual bool WriteToFile(
	NSString^ path
)
Parameters
path (NSString)
The path at which to save the color list. If path is a directory, the receiver is saved in a file named listname.clr in that directory (where listname is the name with which the receiver was initialized).
Return Value
YES upon success and NO if the method fails to write the file.
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)