I have the following issue and need a patter to solve it:
To make it simple I have two views, the MasterViewController and the PreferencesController, the last one is an popup from the first. The PrefController has delegated some methods to the MasterController.
But now I wanna catch a Popover-Event from the PreferencesController and inform the MasterController about it.
What is the best way to do it? I don’t wanna use a delegate in the other direction now too, that doenst seem to be a good solution. I thought about creating an event for this, but you might have a better advice/solution for this situation.
Thanks in advance
You could check out the NSNotificationCenter reference guide maybe this can do the job? It’s perfect for communication between controllers and the best thing is they don’t have to know about each other. Else you may have to declare a protocol for passing the data between the contorllers.