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