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: "Sean McBride" <email@hidden>
- Date: Thu, 24 Feb 2005 12:11:41 -0500
- Organization: Rogue Research
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;
}
Then you can expose a binding named "isKeySlice". Now, "note that the
binding name need not necessarily correspond to the name of an actual
instance variable". This is what they mean.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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