Re: IB key-value oddity...
Re: IB key-value oddity...
- Subject: Re: IB key-value oddity...
- From: Vince DeMarco <email@hidden>
- Date: Wed, 13 Jun 2001 13:42:13 -0700
On Wednesday, June 13, 2001, at 09:47 AM, Fritz Anderson wrote:
At 6:54 AM -0700 6/13/2001, Henri Lamiraux wrote:
The rule for outlet connection is as follow:
If you have an outlet foo, first we look for a -setFoo: method and call
it if it exists passing the outlet value as parameter. If this method
doesn't exist we them look for a instance variable foo and set it
directly.
It is a very good rule, sensible, elegant, and easy to understand. It
wasn't even hard to infer.
I just don't remember having seen it before.
My question was honest, and I renew it: Where was this rule
documented? When I find a gap like this in my knowledge, I want to go
to the source to see if there are other gaps I might fill. I wouldn't
ask anyone to go looking for it, but if someone on the list can
remember where they saw this rule, I'd appreciate the pointer.
In the old days (Nextstep) IB used to require the set methods to exist.
If you did any nextstep programming in the beginning you will probably
remember this.
vince