• 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 is not case-sensitive?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Key Value Coding is not case-sensitive?


  • Subject: Re: Key Value Coding is not case-sensitive?
  • From: Jim Correia <email@hidden>
  • Date: Tue, 28 Apr 2009 00:29:36 -0400

On Tue, Apr 28, 2009 at 12:09 AM, DairyKnight <email@hidden> wrote:

>   And have the following set methods:
>
>   -(void) setfido ...
>   -(void) setFido ...
>
>   Both by calling [self setValue: ... forKey:@"fido"] or [self setValue:...
> forKey:@"Fido"], the runtime would call the same 'setFido' method. How could
> this be?

-setfido is not a KVC compliant method name.

Fido is not a KVC compliant iVar name. (Though generally you should be
using KVC via accessor methods and not via direct iVar access anyway.)

http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/Concepts/Compliant.html

- Jim
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Key Value Coding is not case-sensitive? (From: DairyKnight <email@hidden>)

  • Prev by Date: Re: Why is NSString->FSRef so hard?
  • Next by Date: Re: Key Value Coding is not case-sensitive?
  • Previous by thread: Key Value Coding is not case-sensitive?
  • Next by thread: Re: Key Value Coding is not case-sensitive?
  • Index(es):
    • Date
    • Thread