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 11:26:31 -0600
On Thursday, February 24, 2005, at 11:11AM, Sean McBride <email@hidden> wrote:
>On 2005-02-24 10:52, Ricky Sharp said:
>
>>Sorry for not being clear, but the issue at hand is really what the
>>documentation [1] states (soon after Figure 6):
>>
>>"Note that the binding name need not necessarily correspond to the name
>>of an actual instance variable."
>
>I guess it could be clearer... things always can. :)
>
>>To me, this implies that the name used in exposeBinding can differ from
>>the iVar (and accessor) names.
>
>There must be either an accessor or ivar with the same name as the
>'exposed binding name'. But you are free to have an accessor like this:
>
>- (BOOL)isKeySlice
>{
> return someDumbName;
>}
>
>- (void)setIsKeySlice:(BOOL)flag
>{
> someDumbName = flag;
>}
Thanks Sean; that really clears things up :)
I'm going to stick with keeping all names the same. Don't really want to have 'proxy' accessors, but it's good to know I could go that route if needed.
--
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