• 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: Private ivars, not marked as IBOutlet, visible in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Private ivars, not marked as IBOutlet, visible in IB


  • Subject: Re: Private ivars, not marked as IBOutlet, visible in IB
  • From: Joanna Carter <email@hidden>
  • Date: Thu, 4 Mar 2010 18:58:31 +0000

Le 4 mars 2010 à 16:31, Lynn Barton a écrit :

> Buck and Yacktman's book Cocoa Design Patterns says on page 208, "Any instance variable with type id and a name that doesn't start with an underscore character is automatically considered an outlet."

That is understandable... if the ivars have not otherwise been marked as @private.

I have no problem with this concept of default behaviour, if it is for legacy purposes but, with the new visibility specifiers, these should take precedence of the older legacy rules.

Never mind, as long as you prepend the private ivar with an underscore, it disappears :-)

Joanna

--
Joanna Carter
Carter Consulting

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Private ivars, not marked as IBOutlet, visible in IB
      • From: Thomas Engelmeier <email@hidden>
References: 
 >Re: Private ivars, not marked as IBOutlet, visible in IB (From: Lynn Barton <email@hidden>)

  • Prev by Date: Re: Uninitialized rectangle??
  • Next by Date: Re: Uninitialized rectangle??
  • Previous by thread: Re: Private ivars, not marked as IBOutlet, visible in IB
  • Next by thread: Re: Private ivars, not marked as IBOutlet, visible in IB
  • Index(es):
    • Date
    • Thread