Instance Method
pasteDict(_:format:selectedNodes:) pasteDict:format:selectedNodes:error: pasteDict_format_selectedNodes_error_
Adds content from a serialized selection dictionary.
Declaration
func pasteDict(_ dictionary: [AnyHashable : Any], format: GSFormatVersion, selectedNodes: [GSNode]) throwsDeclaration
- (BOOL) pasteDict:(NSDictionary *) dictionary format:(GSFormatVersion) format selectedNodes:(NSArray<GSNode *> *) selectedNodes error:(NSError **) error;Declaration
pasteDict_format_selectedNodes_error_(dictionary: dict, format: GSFormatVersion, selectedNodes: list[GSNode]) -> tuple[bool, NSError]Parameters
dictionaryA decoded selection dictionary.
formatThe format version of the dictionary.
selectedNodesTarget nodes used to attach pasted hints.
Parameters
dictionaryA decoded selection dictionary.
formatThe format version of the dictionary.
selectedNodesTarget nodes used to attach pasted hints.
errorOn failure, information about the error.
Discussion
The added elements become the selection.
Return Value
Whether the complete selection was added.
Discussion
The added elements become the selection.
See Also
Selection Serialization
Content representing the selected elements for serialization and paste.
Structural mappings for the selected elements.
Removes elements described by structural mappings.
Removes a selectable element from the layer.
Removes mapped nodes while preserving the unselected path portions.
Separates paths by whether they contain selected nodes.