MutatorHelper

@objcMembers public class MutatorHelper: NSObject

Helper class for transitioning between block mutation changes.

  • Table that maps input names to a target connection. This is used for reconnecting inputs to previously connected connections.

    Declaration

    Swift

    public private(set) var savedTargetConnections: NSMapTable<NSString, Connection> =
  • Clears the mapping of inputs and target connections.

    Note

    This method is typically called once prior to beginning mutator changes inside a modal popover.

    Declaration

    Swift

    public func clearSavedTargetConnections()
  • For each specified input, saves the mapping of the input’s name and its current target connection. This is to be used in conjunction with reconnectSavedTargetConnections(toInputs:layoutCoordinator:).

    Note

    This method is typically called once prior to beginning mutator changes inside a modal popover.

    Declaration

    Swift

    public func saveTargetConnections(fromInputs inputs: [Input])