I have a class that from time to time synchronizes data in the background. The user can be anywhere in the application navigation tree, and no matter where the user is, I need to be able to update the view controllers with any new data that I just synchronized.
I set the object responsible for synchronizing the background thread as the SharedAppDelegate property.
In a sense, I need to implement something like the Observer pattern, and every time I create an instance of the view controller, it must listen for some event against the background of synchronization, so after each synchronization I can execute the method in the view controllers, they listen.
I'm not sure if the correct way to do this is in Objective-C, or if there is even a better or recommended way.
source share