Instance Method
save(to:format:context:) saveToFile:format:context:error: saveToFile_format_context_error_
Writes a Glyphs source representation to a file.
Declaration
func save(to file: UnsafeMutablePointer<FILE>, format formatVersion: GSFormatVersion, context: GSSaveContext?) throwsDeclaration
- (BOOL) saveToFile:(FILE *) file format:(GSFormatVersion) formatVersion context:(GSSaveContext *) context error:(NSError **) error;Declaration
saveToFile_format_context_error_(file: FILE, formatVersion: GSFormatVersion, context: GSSaveContext) -> tuple[bool, NSError]Parameters
fileAn open writable file positioned where the representation is written.
formatVersionThe Glyphs file format version to write.
contextThe options and shared state for the save operation, or
nilwhen none are required.
Parameters
fileAn open writable file positioned where the representation is written.
formatVersionThe Glyphs file format version to write.
contextThe options and shared state for the save operation, or
nilwhen none are required.errorOn failure, an error describing why the representation could not be written.
Return Value
Whether the object was encoded successfully.
See Also
Encoding
A property-list representation in a Glyphs source format, or
nilwhen the object cannot be encoded.