У меня есть NSOperation. Когда он закончен, я запускаю NSNotificationCenter, чтобы программа узнала, что NSoperation завершена, и обновить gui.
Насколько я понимаю, слушатели NSNotification не будут работать в основном потоке, потому что NSOperation не находится в основном потоке.
Как я могу сделать так, чтобы слушатели запускались в основном потоке, когда я запускаю свое событие?
[[NSNotificationCenter defaultCenter] postNotificationName:@"myEventName" object:self];