Re: Explain "take"
Re: Explain "take"
- Subject: Re: Explain "take"
- From: Arturo PĂ©rez <email@hidden>
- Date: Sun, 11 Jul 2004 20:02:54 -0400
On Jul 11, 2004, at 7:44 PM, Lotsa Cabo wrote:
Okay, I've been asked another simple question regarding WebObjects and
cannot properly explain it. Can someone give me a good explanation,
please?
The question...
"When SETTING a value for WOComponent, why must one use
'takeValueForKey?' Should it not be 'setValueForKey' or something
similar? Why the word 'take?'"
Interesting question. Here's my "take" which may have no bearing on
reality.
1) It's a historical accident. Most of WO predates the o-o revolution.
2) It's an advisory. takeValueForKey doesn't necessarily work the same
as things in a more traditional setting. All the validation, etc may
cause your "set" not to take.
There's my stab at it.
----
WO in philadelphia - wanna cheesesteak with that?
Please visit webobjects.meetup.com.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.