Re: Pre-defined methods - documentation?
Re: Pre-defined methods - documentation?
- Subject: Re: Pre-defined methods - documentation?
- From: Sherm Pendley <email@hidden>
- Date: Sat, 8 May 2004 23:07:26 -0400
On May 8, 2004, at 6:50 PM, Ondra Cada wrote:
Instead, the NIB loading code uses a magic, called Key/Value coding, to
set the outlet values (actually, it is a bit more complicated
Well, strictly speaking, its behavior is a bit more simplistic than
"normal" KVC. Although that does complicate the discussion. ;-)
NSNibOutletConnector doesn't actually send any of the messages found in
the NSKeyValueCoding protocol. Instead, it implements its own
watered-down version of KVC that checks only for a specifically-named
accessor method, and if that isn't found, for an instance variable.
Why it does this instead of simply calling takeValue:forKey: (or, on
Panther, setValue:forKey:) is anyone's guess. I would guess that the
outlet connection machinery predates the NSKVC protocol, and hasn't
been updated to use the protocol out of inertia.
sherm--
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.