Jump to content

Delegates: Difference between revisions

no edit summary
(→‎{{header|Tcl}}: adjust layout, make more resilient)
No edit summary
Line 1:
{{task|Object oriented}}
 
A delegate is a helper object used by another object. The delegator may send the delegate certain messages, and provide a default implementation when there is no delegate or the delegate does not respond to a message. This pattern is heavily used in [http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaDesignPatterns/chapter_5_section_3.html#//apple_ref/doc/uid/TP40002974-CH6-DontLinkElementID_93 Cocoa framework on Mac OS X]. See also [[wp:Delegation pattern]].
 
Objects responsibilities:
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.