Re: Delegates
Re: Delegates
- Subject: Re: Delegates
- From: Nate Weaver <email@hidden>
- Date: Mon, 19 May 2008 11:52:30 -0500
A delegate is simply another object that is asked for more information
or asked to do something (often optional) on behalf of the sender or
in response to something the sender does (e.g., a window resize, or a
table asking whether its selection can change).
So, if I'm correctly reading what you've written, you're pretty close,
and I'm sure you'll figure out what you've missed as you go along.
On May 19, 2008, at 11:22 AM, john darnell wrote:
Hello Everyone:
I've been trying to get my head wrapped around the concept of
"delegates" and I thought I would run it by the list to see if I am
approaching the correct idea behind a delegate.
As far as I can tell, it is kind of like a virtual function (virtual
because I, the programmer, am expected to flesh it out) that resembles
an event attached to a given class. It has specific times when it is
called and at that time it may perform just about any duty that the
programmer can dream of, or she can stick to something that relates to
the object calling it. In almost every description of a delegate
that I
perused, I found the words "when" or "before," which is why I
related a
delegate to an event.
Am I getting close?
R,
John A.M. Darnell
Team Leader
Walsworth Publishing Company
Brookfield, MO
John may also be reached at email@hidden
Trivia Question: In SciFi Channel's hit series, FARSCAPE, who played
the voice of Pilot?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Delegates (From: "john darnell" <email@hidden>) |