Instance Property

ready

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

Declaration

@property(readonly, getter=isReady) BOOL ready;

Discussion

The readiness of operations is determined by their dependencies on other operations and potentially by custom conditions that you define. The NSOperation class manages dependencies on other operations and reports the readiness of the receiver based on those dependencies.

If you want to use custom conditions to define the readiness of your operation object, reimplement this property and return a value that accurately reflects the readiness of the receiver. If you do so, your custom implementation must get the default property value from super and incorporate that readiness value into the new value of the property. In your custom implementation, you must generate KVO notifications for the isReady key path whenever the ready state of your operation object changes. For more information about generating KVO notifications, see Key-Value Observing Programming Guide.

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.

finished

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

concurrent

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

asynchronous

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

name

The name of the operation.