Delegate

From GNUstepWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

A delegate object is an object which acts on behalf of another object by implementing messages which allow the delegate to interfere in the normal flow of events, unlike notifications which only allow the receiver to react to the event.

Delegates are typically used to avoid subclassing.

Extend with Delegates: http://cocoadevcentral.com/articles/000075.php