• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Binding name must be same as ivar name?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Binding name must be same as ivar name?
      • From: Ricky Sharp <email@hidden>
References: 
 >Re: Binding name must be same as ivar name? (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: Binding name must be same as ivar name?
  • Next by Date: Re: NSTextField not updating programmatically with sheet
  • Previous by thread: Re: Binding name must be same as ivar name?
  • Next by thread: Re: Binding name must be same as ivar name?
  • Index(es):
    • Date
    • Thread