Re: IB key-value oddity...
Re: IB key-value oddity...
- Subject: Re: IB key-value oddity...
- From: Henri Lamiraux <email@hidden>
- Date: Wed, 13 Jun 2001 06:54:22 -0700
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.
On Tuesday, June 12, 2001, at 11:20 PM, Fritz Anderson wrote:
>
I discover I have a namespace collision: When the nib loads,
>
setPyramidRate: gets called with an NSTextField * in the sender
>
parameter. After awakening from the nib, the pyramidRate outlet is nil.
>
>
Renaming the action to newPyramidRate: fixes the problem.
>
>
I'm guessing I walked into a trap with the NSKeyValueCoding protocol,
>
but darned if I remember being warned of it. Could someone put me out
>
of my misery and point out where this is documented? Obviously this is
>
in a document I want to re-read.
Henri Lamiraux
Engineering Manager
User Interface Tools Group
Apple