I have an NSOperation. When it is finished I fire a NSNotificationCenter to let the program know that the NSoperation is finished and to update the gui.
To my understanding listeners to the NSNotification will not run on the main thread because the NSOperation is not on the main thread.
How can I make it so that the listeners run on the main thread when I fire my event?
[[NSNotificationCenter defaultCenter] postNotificationName:@"myEventName" object:self];