Difference between revisions of "Delegate"

From GNUstepWiki
Jump to navigation Jump to search
 
(Added to category Objective-C)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
A delegate object is an [[object]] which acts on behalf of another object by implementing [[message|messages]] which allow the delegate to interfere in the normal flow of [[event|events]], unlike notifications which only allow the receiver to react to the event.
 +
 +
Delegates are typically used to avoid [[Class#SubClass|subclassing]].
 +
 
Extend with Delegates: http://cocoadevcentral.com/articles/000075.php
 
Extend with Delegates: http://cocoadevcentral.com/articles/000075.php
 +
 +
 +
[[Category:Objective-C]]

Latest revision as of 09:46, 21 June 2006

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