Re: Binding name must be same as ivar name?
Re: Binding name must be same as ivar name?
- Subject: Re: Binding name must be same as ivar name?
- From: Ricky Sharp <email@hidden>
- Date: Thu, 24 Feb 2005 08:09:59 -0600
On Thursday, February 24, 2005, at 07:44AM, Jim Correia <email@hidden> wrote:
>On Feb 24, 2005, at 8:00 AM, Ricky Sharp wrote:
>
>> Have I misread the quote in the documentation? Must the names of
>> bindings match the ivars? If a binding name can be different, is
>> there anything else I need to provide in my code to 'map the binding
>> name to an ivar'?
>
>You need to follow KVC conventions either in iVar naming or accessor
>naming.
>
>@interface Foo : NSObject
>{
> int fred;
>}
>
>@end
>
>@implementation Foo
>
>- (void)setBob:(int)val
>{
> fred = val;
>}
>
>- (int)bob
>{
> return fred;
>}
>
>@end
Yes, I know this. All my iVars have appropriately named accessors. My question is about the name of the _custom binding_ (i.e. the names used in, among other calls, exposeBinding:
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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