Instance Method

writeToURL:error:

Writes the workflow to the specified file.

Declaration

- (BOOL)writeToURL:(NSURL *)fileURL error:(NSError * _Nullable *)outError;

Parameters

fileURL

URL that specifies the file location to write the workflow.

outError

If the workflow file can’t be written, upon return, contains an instance of NSError that describes the problem.

Return Value

YES if the workflow was successfully written; otherwise NO.

Discussion

You might want to save the workflow, for example, because you have made changes to a variable it contains.

See Also