write(toFile:)
Saves the color list to the file at the specified path.
Declaration
func write(toFile path: String?) -> BoolParameters
- path:
The path at which to save the color list. If
pathis a directory, the receiver is saved in a file named listname.clrin that directory (where listname is the name with which the receiver was initialized).If
pathincludes a filename, this method saves the file under that name. Ifpathisnil, the file is saved as listname.clrin the user’s private colorlists directory.
Return Value
true upon success and false if the method fails to write the file.