Instance Property

finished

A Boolean value indicating whether the operation has finished executing its task.

Declaration

@property(readonly, getter=isFinished) BOOL finished;

Discussion

The value of this property is YES if the operation has finished its main task or NO if it is executing that task or has not yet started it.

When implementing a concurrent operation object, you must override the implementation of this property so that you can return the finished state of your operation. In your custom implementation, you must generate KVO notifications for the isFinished key path whenever the finished state of your operation object changes. For more information about manually generating KVO notifications, see Key-Value Observing Programming Guide.

You do not need to reimplement this property for nonconcurrent operations.

See Also

Getting the Operation Status

cancelled

A Boolean value indicating whether the operation has been cancelled

executing

A Boolean value indicating whether the operation is currently executing.

concurrent

A Boolean value indicating whether the operation executes its task asynchronously.

asynchronous

A Boolean value indicating whether the operation executes its task asynchronously.

ready

A Boolean value indicating whether the operation can be performed now.

name

The name of the operation.