AMWorkflowView Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/Automator.framework
Availability
Available in OS X v10.5 and later.
Declared in
AMWorkflowView.h
Companion guides
Related sample code

Overview

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 AMWorkflowController 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.

Tasks

Configuring the Workflow View

Instance Methods

isEditable

Returns a Boolean value indicating whether the workflow view is editable.

- (BOOL)isEditable
Return Value

YES if the workflow view is editable, otherwise NO.

Availability
  • Available in OS X v10.5 and later.
Declared In
AMWorkflowView.h

setEditable:

Sets whether the workflow view is editable.

- (void)setEditable:(BOOL)flag
Parameters
flag

YES to make the workflow view editable, otherwise NO.

Availability
  • Available in OS X v10.5 and later.
Declared In
AMWorkflowView.h

setWorkflowController:

Sets the receiver’s controller to the passed workflow controller.

- (void)setWorkflowController:(AMWorkflowController *)workflowController
Parameters
workflowController

The controller to set for the receiver.

Availability
  • Available in OS X v10.9 and later.
Declared In
AMWorkflowView.h

workflowController

Returns the receiver’s workflow controller.

- (AMWorkflowController *)workflowController
Return Value

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

Availability
  • Available in OS X v10.9 and later.
Declared In
AMWorkflowView.h