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

Key Value Coding is not case-sensitive?


  • Subject: Key Value Coding is not case-sensitive?
  • From: DairyKnight <email@hidden>
  • Date: Tue, 28 Apr 2009 12:09:52 +0800

Hi all,

     I'm trying to understand how the KVC works in Objective-C. It seems to
me that the 'set' method is not case-sensitive? For example, if I define a
class with:

    @interface TestClass : NSObject
    {
         int fido;
         int Fido;
    }

   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?


Regards,
DairyKnight
_______________________________________________

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

  • Follow-Ups:
    • Re: Key Value Coding is not case-sensitive?
      • From: Ken Thomases <email@hidden>
    • Re: Key Value Coding is not case-sensitive?
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: URL Parsing
  • Next by Date: Re: Why is NSString->FSRef so hard?
  • Previous by thread: Re: C string constant->NSString constant without defining twice?
  • Next by thread: Re: Key Value Coding is not case-sensitive?
  • Index(es):
    • Date
    • Thread