NSThreadを使用して別のスレッドにオブジェクトを作成します。
NSThread* myThread = [[[NSThread alloc] initWithTarget:self selector:@selector(createNewObject:) object:elements] autorelease];
[myThread start]; // Actually start the thread
そのオブジェクトはイベントを待機します。そのイベントが発生すると、デフォルトの通知センターに通知が投稿されます。
私のAppControllerはその通知を監視し、セレクターを実行します。
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
[nc addObserver:self selector:@selector(myMethod:) name:MyNotification object:nil];
質問:セレクターのメソッド(myMethod :)は、メインスレッドで実行されますか、それとも上からのスレッド(myThread)で実行されますか?