Documentation Archive Developer
Search

Automator Changes for Objective-C

Automator

AMAction.h

Modified -[AMAction definition]
Declaration
From
- (NSMutableDictionary *)definition
To
- (NSMutableDictionary<NSString *,id> * _Nonnull)definition

Declaration
From
- (void)didFinishRunningWithError:(NSDictionary *)errorInfo
To
- (void)didFinishRunningWithError:(NSDictionary<NSString *,id> * _Nullable)errorInfo

Declaration
From
- (void)finishRunningWithError:(NSError *)error
To
- (void)finishRunningWithError:(NSError * _Nullable)error

Declaration
From
- (instancetype)initWithContentsOfURL:(NSURL *)fileURL error:(NSError **)outError
To
- (instancetype _Nullable)initWithContentsOfURL:(NSURL * _Nonnull)fileURL error:(NSError * _Nullable * _Nullable)outError

Declaration
From
- (instancetype)initWithDefinition:(NSDictionary *)dict fromArchive:(BOOL)archived
To
- (instancetype _Nullable)initWithDefinition:(NSDictionary<NSString *,id> * _Nonnull)dict fromArchive:(BOOL)archived

Declaration
From
- (void)logMessageWithLevel:(AMLogLevel)level format:(NSString *)format, ...
To
- (void)logMessageWithLevel:(AMLogLevel)level format:(NSString * _Nonnull)format, ...

Modified AMAction.name
Declaration
From
@property(readonly, strong) NSString *name
To
@property(readonly, strong, nonnull) NSString *name

Declaration
From
@property(strong) id output
To
@property(strong, nullable) id output

Declaration
From
- (void)runAsynchronouslyWithInput:(id)input
To
- (void)runAsynchronouslyWithInput:(id _Nullable)input

Declaration
From
- (id)runWithInput:(id)input error:(NSError **)error
To
- (id _Nullable)runWithInput:(id _Nullable)input error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (id)runWithInput:(id)input fromAction:(AMAction *)anAction error:(NSDictionary **)errorInfo
To
- (id _Nullable)runWithInput:(id _Nullable)input fromAction:(AMAction * _Nullable)anAction error:(NSDictionary<NSString *,id> * _Nullable * _Nullable)errorInfo

Declaration
From
@property(strong) NSString *selectedInputType
To
@property(strong, nullable) NSString *selectedInputType

Declaration
From
@property(strong) NSString *selectedOutputType
To
@property(strong, nullable) NSString *selectedOutputType

Declaration
From
- (void)writeToDictionary:(NSMutableDictionary *)dictionary
To
- (void)writeToDictionary:(NSMutableDictionary<NSString *,id> * _Nonnull)dictionary

AMAppleScriptAction.h

Declaration
From
@property(strong) OSAScript *script
To
@property(strong, nonnull) OSAScript *script

AMBundleAction.h

Declaration
From
@property(readonly, strong) NSBundle *bundle
To
@property(readonly, strong, nonnull) NSBundle *bundle

Declaration
From
@property(strong) NSMutableDictionary *parameters
To
@property(strong, nullable) NSMutableDictionary<NSString *,id> *parameters

Declaration
From
@property(readonly, strong) NSView *view
To
@property(readonly, strong, nullable) NSView *view

AMShellScriptAction.h

Declaration
From
- (NSString *)inputFieldSeparator
To
@property(readonly, copy, nonnull) NSString *inputFieldSeparator

Declaration
From
- (NSString *)outputFieldSeparator
To
@property(readonly, copy, nonnull) NSString *outputFieldSeparator

Declaration
From
- (BOOL)remapLineEndings
To
@property(readonly) BOOL remapLineEndings

AMWorkflow.h

Declaration
From
@property(readonly, retain) NSArray *actions
To
@property(readonly, retain, nonnull) NSArray<__kindof AMAction *> *actions

Declaration
From
- (void)addAction:(AMAction *)action
To
- (void)addAction:(AMAction * _Nonnull)action

Declaration
From
@property(readonly, copy) NSURL *fileURL
To
@property(readonly, copy, nullable) NSURL *fileURL

Declaration
From
- (instancetype)initWithContentsOfURL:(NSURL *)fileURL error:(NSError **)outError
To
- (instancetype _Nullable)initWithContentsOfURL:(NSURL * _Nonnull)fileURL error:(NSError * _Nullable * _Nullable)outError

Declaration
From
@property(readwrite, retain) id input
To
@property(readwrite, retain, nullable) id input

Declaration
From
- (void)insertAction:(AMAction *)action atIndex:(NSUInteger)index
To
- (void)insertAction:(AMAction * _Nonnull)action atIndex:(NSUInteger)index

Declaration
From
@property(readonly, retain) id output
To
@property(readonly, retain, nullable) id output

Declaration
From
- (void)removeAction:(AMAction *)action
To
- (void)removeAction:(AMAction * _Nonnull)action

Declaration
From
+ (id)runWorkflowAtURL:(NSURL *)fileURL withInput:(id)input error:(NSError **)error
To
+ (id _Nullable)runWorkflowAtURL:(NSURL * _Nonnull)fileURL withInput:(id _Nullable)input error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)setValue:(id)value forVariableWithName:(NSString *)variableName
To
- (BOOL)setValue:(id _Nullable)value forVariableWithName:(NSString * _Nonnull)variableName

Declaration
From
- (id)valueForVariableWithName:(NSString *)variableName
To
- (id _Nonnull)valueForVariableWithName:(NSString * _Nonnull)variableName

Declaration
From
- (BOOL)writeToURL:(NSURL *)fileURL error:(NSError **)outError
To
- (BOOL)writeToURL:(NSURL * _Nonnull)fileURL error:(NSError * _Nullable * _Nullable)outError

AMWorkflowController.h

Declaration
From
@property(assign) id delegate
To
@property(assign, nullable) id delegate

Declaration
From
- (IBAction)pause:(id)sender
To
- (IBAction)pause:(id _Nonnull)sender

Declaration
From
- (IBAction)reset:(id)sender
To
- (IBAction)reset:(id _Nonnull)sender

Declaration
From
- (IBAction)run:(id)sender
To
- (IBAction)run:(id _Nonnull)sender

Declaration
From
- (IBAction)step:(id)sender
To
- (IBAction)step:(id _Nonnull)sender

Declaration
From
- (IBAction)stop:(id)sender
To
- (IBAction)stop:(id _Nonnull)sender

Declaration
From
@property(strong) AMWorkflow *workflow
To
@property(strong, nullable) AMWorkflow *workflow

Declaration
From
@property(strong) AMWorkflowView *workflowView
To
@property(strong, nullable) AMWorkflowView *workflowView

Declaration
From
- (void)workflowController:(AMWorkflowController *)controller didError:(NSError *)error
To
- (void)workflowController:(AMWorkflowController * _Nonnull)controller didError:(NSError * _Nonnull)error

Declaration
From
- (void)workflowController:(AMWorkflowController *)controller didRunAction:(AMAction *)action
To
- (void)workflowController:(AMWorkflowController * _Nonnull)controller didRunAction:(AMAction * _Nonnull)action

Declaration
From
- (void)workflowController:(AMWorkflowController *)controller willRunAction:(AMAction *)action
To
- (void)workflowController:(AMWorkflowController * _Nonnull)controller willRunAction:(AMAction * _Nonnull)action

Declaration
From
- (void)workflowControllerDidRun:(AMWorkflowController *)controller
To
- (void)workflowControllerDidRun:(AMWorkflowController * _Nonnull)controller

Declaration
From
- (void)workflowControllerDidStop:(AMWorkflowController *)controller
To
- (void)workflowControllerDidStop:(AMWorkflowController * _Nonnull)controller

Declaration
From
- (void)workflowControllerWillRun:(AMWorkflowController *)controller
To
- (void)workflowControllerWillRun:(AMWorkflowController * _Nonnull)controller

Declaration
From
- (void)workflowControllerWillStop:(AMWorkflowController *)controller
To
- (void)workflowControllerWillStop:(AMWorkflowController * _Nonnull)controller

AMWorkflowView.h

Declaration
From
@property(strong) AMWorkflowController *workflowController
To
@property(strong, nullable) AMWorkflowController *workflowController