I am working on a card game, as part of which I need to update my controller when touchesEnded
. I am debating whether NSNotification
is a way to go as compared with implementing a callback via Delegates.
The question: In general, using Objective-C
, how can one make class A
subscribe to events happening in class B
?
Specifically I wonder whether how can one formally declare one class as delegate of another?