I am writing a component (e.g. VeryLongJobExecuter) in Objective C.
I want this VeryLongJobExecuter to be able to notify other objects (one to many) when its job is finished, and execute a common method, e.g. (jobExecuted).
I am thinking to store the reference of these delegates in either NSArray/NSSet, and iterate the delegates and call the method.
Or should I use Notification instead?
The reason that we have notifications is so that you don’t have to keep a reference to every other object that might care about an event. Don’t re-invent the wheel.