Instance Method インスタンスメソッド

main()

Performs the receiver’s non-concurrent task. レシーバのもつ非並行タスクを実行します。

Declaration 宣言

func 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. このメソッドの省略時の実装は何もしません。あなたは、望むタスクを実行するためにこのメソッドをオーバーライドすべきです。あなたの実装において、superを発動しないでください。このメソッドは、NSOperationによって提供されるオートリリースプール内で自動的に遂行します、それであなたはあなた独自のオートリリースプールブロックをあなたの実装において作成する必要はありません。

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. あなたが並行オペレーションを実装するならば、あなたはこのメソッドをオーバーライドすることを求められません、しかしあなたがそれをあなたのあつらえのstart()メソッドから呼び出す計画を持つならばそうするかもしれません。

See Also 参照

Executing the Operation オペレーションを遂行する