Key Value Coding is not case-sensitive?
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