Declaration

class GSNode

Declaration

@interface GSNode : NSObject

Declaration

class GSNode(NSObject)

Overview

Nodes form the ordered sequence that describes a path. There is a single off-curve node type and multiple different on-curve node types. An on-curve node lies on the path, and its type describes the path segment ending at that node. An off-curve node, also known as a handle, controls the curvature of a path segment and does not necessarily lie on the path.

For every on-curve node, a incoming path segment ends and an outgoing path segment begins. The node connection describes the relationship between these two segments.

A node can exist without a parent path, in which case its layer and glyph are also unavailable.

Use path APIs to add or remove nodes so that the node and path remain consistent. Regular mutation APIs register undo and notify the path when applicable. Fast APIs omit this behavior and require the caller to manage related changes.

Conceptually, GSNode is a GSElement, but it does not inherit from GSElement for optimizations reasons.

Topics

Creating a Node

Type

  • The type of path segment that the node describes.

  • The type of the node.

  • More efficient access to the node type.

  • A character representing the type of the node.

Connection

Orientation

Position

Locking

  • Whether the node should reject edits.

Path Navigation

Path API

Attachments

Owners

  • The path containing the node, or nil when the node is not part of a path.

  • The layer containing the node, or nil when the node is not part of a layer.

  • The glyph containing the node, or nil when the node is not part of a glyph.

Attributes

Metadata

  • A user-assigned name of the node.

  • Higher-order interpolation definitions where the keys are axis tags.

  • Hobby node information associated with the node.

  • The pen point at the node, or nil if none exists.

  • The pen points associated with the node.

Temporary Data

Encoding

Undo

  • Returns the undo manager of the containing glyph.

  • Returns the undo manager of the containing glyph, if undo is enabled for the glyph.

Equality

Enumerations

Topics

Creating a Node

Type

Connection

Orientation

Position

Locking

Path Navigation

Path API

Attachments

Owners

  • The path containing the node, or nil when the node is not part of a path.

  • The layer containing the node, or nil when the node is not part of a layer.

  • The glyph containing the node, or nil when the node is not part of a glyph.

Attributes

Metadata

  • A user-assigned name of the node.

  • Higher-order interpolation definitions where the keys are axis tags.

  • Hobby node information associated with the node.

  • The pen point at the node, or nil if none exists.

  • The pen points associated with the node.

Temporary Data

Encoding

Undo

  • Returns the undo manager of the containing glyph.

  • Returns the undo manager of the containing glyph, if undo is enabled for the glyph.

Equality

Other

Relationships

Inherits From

  • NSObject

Conforms To

Relationships

Inherits From

  • NSObject

Conforms To

See Also

Nodes