Instance Method
propertyList(to:format:) propertyListToData:format:error: propertyListToData_format_error_
Appends a Glyphs source representation to a data buffer.
Declaration
func propertyList(to data: CFMutableData, format formatVersion: GSFormatVersion) throwsDeclaration
- (BOOL) propertyListToData:(CFMutableDataRef) data format:(GSFormatVersion) formatVersion error:(NSError **) error;Declaration
propertyListToData_format_error_(data: CFMutableDataRef, formatVersion: GSFormatVersion) -> tuple[bool, NSError]Parameters
dataThe data buffer to which the representation is appended.
formatVersionThe Glyphs file format version used for the representation.
Parameters
dataThe data buffer to which the representation is appended.
formatVersionThe Glyphs file format version used for the representation.
errorOn failure, an error describing why the representation could not be written.
Discussion
Concrete subclasses implement this method for their representation.
Return Value
Whether the representation was appended successfully.
Discussion
Concrete subclasses implement this method for their representation.
See Also
Encoding
Restores the common element values from a Glyphs source representation.
A property-list representation of the common element values, or
nilwhen all values have their defaults.