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

performSelectorInBackground:withObject:

Invokes a method of the receiver on a new background thread. レシーバのメソッドを新しいバックグラウンドスレッド上で発動します。

Declaration 宣言

- (void)performSelectorInBackground:(SEL)aSelector 
                         withObject:(id)arg;

Parameters パラメータ

aSelector

A Selector that identifies the method to invoke. The method should not have a significant return value and should take a single argument of type id, or no arguments.

arg

The argument to pass to the method when it is invoked. メソッドに、それが発動されるときに渡される引数。 Pass nil if the method does not take an argument.

Discussion 解説

This method creates a new thread in your application, putting your application into multithreaded mode if it was not already. このメソッドは、新しいスレッドをあなたのアプリケーションにおいて作成します、あなたのアプリケーションを、それがまだそうでなかったならば、あなたのアプリケーションをマルチスレッドモードにします。 The method represented by aSelector must set up the thread environment just as you would for any other new thread in your program. For more information about how to configure and run threads, see Threading Programming Guide.

See Also 参照

Sending Messages メッセージ送信