• 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: Sat, 13 Mar 2010 09:32:08 +0000

Hi Thomas

> Which is something some people at Apple encourage not to do. The leading underscore is seen as "Library implementors naming space" (also and especially for method signatures) so your code might break when you use that coding pattern.
>
> OTOH, enforcing would break many peoples codebase, so it is unlikely that will ever happen.

There is no need to enforce anything on developers. All that is needed is to detect whether the ivar is @private and to respect that visibility. If an ivar is private, it should not be visible in the IB designer, regardless of whether it is of type id or not.

This will not break anyone's code as most legacy code that required id-typed ivars to be visible in IB doesn't use visibility specifiers.

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: Alexander Spohr <email@hidden>
References: 
 >Re: Private ivars, not marked as IBOutlet, visible in IB (From: Lynn Barton <email@hidden>)
 >Re: Private ivars, not marked as IBOutlet, visible in IB (From: Joanna Carter <email@hidden>)
 >Re: Private ivars, not marked as IBOutlet, visible in IB (From: Thomas Engelmeier <email@hidden>)

  • Prev by Date: Re: Private ivars, not marked as IBOutlet, visible in IB
  • Next by Date: Re: Forcing text layout
  • 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