Instance Property インスタンスプロパティ

isReady

A Boolean value indicating whether the operation can be performed now. オペレーションがいま実行されることが可能かどうかを指し示すブール値。

Declaration 宣言

var isReady: Bool { get }

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. オペレーションの準備状況は、他のオペレーションに関するそれらの依存関係によってそしてもしかするとあなたが定義するあつらえの条件によって決定されます。NSOperationクラスは、他のオペレーションに関する依存関係を管理します、そしてレシーバの準備状況をそれら依存関係に基づいて報告します。

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. あなたがあつらえの条件を使ってあなたのオペレーションオブジェクトの準備状況を定義したいならば、このプロパティを再実装してレシーバの準備状況を間違いなく反映する値を返してください。あなたがそうするならば、あなたのあつらえの実装は省略時のプロパティ値をsuperから取得して、その準備状況値をそのプロパティの新しい値へと取り入れなければなりません。あなたのあつらえの実装において、あなたはKVO通知をisReadyキーパスに対して生成しなければなりません、あなたのオペレーションオブジェクトの準備状態が変化する時は必ず。KVO通知を生成する事についてのさらなる情報として、Key-Value Observing Programming Guideを見てください。

See Also 参照

Getting the Operation Status オペレーション状態を取得する

Related Documentation 関連文書