Instance Method

main

Performs the receiver’s non-concurrent task.

Declaration

- (void)main;

Discussion

The default implementation of this method does nothing. You should override this method to perform the desired task. In your implementation, do not invoke super. This method will automatically execute within an autorelease pool provided by NSOperation, so you do not need to create your own autorelease pool block in your implementation.

If you are implementing a concurrent operation, you are not required to override this method but may do so if you plan to call it from your custom start method.

See Also

Executing the Operation

- start

Begins the execution of the operation.

completionBlock

The block to execute after the operation’s main task is completed.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software