• 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: 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

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

  • Prev by Date: Re: NSTextField not updating programmatically with sheet
  • Next by Date: Re: Binding name must be same as ivar name?
  • 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