A delegate uses protocols and creates a has-a relationship between the two classes. One of the other benefits of delegates is that you can return something back to the owning class.Notifications are more geared towards point to multipoint communication.Delegates create relationships between classes. Notifications are used to send events to one or many classes.we have to use delegate to specified known object.notification for all object.
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Delegates and Notifications
A delegate uses protocols and creates a has-a relationship between the two classes. One of the other benefits of delegates is that you can return something back to the owning class.Notifications are more geared towards point to multipoint communication.Delegates create relationships between classes. Notifications are used to send events to one or many classes.we have to use delegate to specified known object.notification for all object.