Mac Developer Library

Developer

Automator Framework Reference AMWorkflowView Class Reference

Options
Deployment Target:

On This Page
Language:

AMWorkflowView

Inheritance


Conforms To


Import Statement


Swift

import Automator

Objective-C

@import Automator;

Availability


Available in OS X v10.5 and later.

You use the AMWorkflowView class to provide viewing and editing of Automator workflows in your application. You use an instance of AMWorkflow to instantiate a workflow and an instance of AMWorkflowController to control its execution. Together, these three classes provide a Model-View-Controller suite for working with workflows.

You can use Interface Builder to add an instance of AMWorkflowView to a window in your application. You can then add an AMWorkflowView object to the nib window and use the controller’s workflowView outlet to connect it to the workflow view. The controller object also has run: and stop: actions that can be connected to buttons or other user interface elements.

  • editable editable Property

    A Boolean value indicating whether the workflow view is editable.

    Declaration

    Swift

    var editable: Bool

    Objective-C

    @property(getter=isEditable) BOOL editable

    Discussion

    YEStrue if the workflow view is editable, otherwise NOfalse. Use isEditable: to determine whether the workflow view is editable. Use setEditable: to set whether the workflow view is editable.

    Import Statement

    Objective-C

    @import Automator;

    Swift

    import Automator

    Availability

    Available in OS X v10.10 and later.

  • The receiver’s workflow controller.

    Declaration

    Swift

    var workflowController: AMWorkflowController!

    Objective-C

    @property(strong) AMWorkflowController *workflowController

    Return Value

    The receiver’s workflow controller, or nil if it doesn’t have a controller.

    Discussion

    Use setWorkflowController: to set the receiver’s controller to the passed workflow controller.

    Import Statement

    Objective-C

    @import Automator;

    Swift

    import Automator

    Availability

    Available in OS X v10.9 and later.