• 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: Key-Value Coding default accessor search implementation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Key-Value Coding default accessor search implementation


  • Subject: Re: Key-Value Coding default accessor search implementation
  • From: Wain <email@hidden>
  • Date: Fri, 18 Nov 2005 14:37:00 +0000


On 18 Nov 2005, at 14:23, Francis Derive wrote:

Hello,

Exercising on this subject, I get an error when I substitute "myInstance" with "ismyInstance".
It is fine with "_myInstance".

Look at http://developer.apple.com/documentation/Cocoa/Conceptual/ KeyValueCoding/Concepts/SearchImplementation.html


It states this in relation to the Default Search Pattern for setValue:forKey:

"If no accessor is found, and the receiver’s class method accessInstanceVariablesDirectly returns YES, the receiver is searched
for an instance variable whose name matches the pattern _<key>, _is<Key>, <key>, or is<Key>, in that order."


-- note that for both 'is' options the Key has a capital K

Have you tried using a capital first letter?

Wain



___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Key-Value Coding default accessor search implementation
      • From: Francis Derive <email@hidden>
References: 
 >Key-Value Coding default accessor search implementation (From: Francis Derive <email@hidden>)

  • Prev by Date: Re: the right place where put a serial number
  • Next by Date: Custom controls in Interface Builder?
  • Previous by thread: Key-Value Coding default accessor search implementation
  • Next by thread: Re: Key-Value Coding default accessor search implementation
  • Index(es):
    • Date
    • Thread