• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Pre-defined methods - documentation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Pre-defined methods - documentation? (From: Tim Hewett <email@hidden>)
 >Re: Pre-defined methods - documentation? (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: [semi-OT] Apple's Help Viewer: a note to the frustrated
  • Next by Date: File Size Code
  • Previous by thread: Re: Pre-defined methods - documentation?
  • Next by thread: Re: Pre-defined methods - documentation?
  • Index(es):
    • Date
    • Thread