Re: Delegate versus Controller
Re: Delegate versus Controller
- Subject: Re: Delegate versus Controller
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 3 Jul 2001 19:09:42 -0700
On Tuesday, July 3, 2001, at 05:46 PM, Kenny Carruthers wrote:
What's the difference between the term delegate and the term
controller?
A delegate is some object that is consulted about the behaviour of
another object (e.g, a window delegate can veto or modify a change like
resizing the window.) A controller is an object that controls the
interaction between a model and a view. It is very common, particularly
in the cocoa examples, for a controller to be the delegate of several
objects.
-jcr
[Objc retain];