• 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: Synthesized instance variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Synthesized instance variables


  • Subject: Re: Synthesized instance variables
  • From: Bill Bumgarner <email@hidden>
  • Date: Thu, 12 Mar 2009 09:38:59 -0700

On Mar 12, 2009, at 9:27 AM, Andreas Känner wrote:
I don't want to make this implementation detail visible to the outside (in the header). It would help if ivars could be declared in categories but this is not possible.

Any other suggestion?

If you really need to have an iVar declared -- and there are reasons to, assuredly -- then use @private.


Whether or not the iVar is declared in your header is no real deterrent to accessing or modifying the instance variable.

b.bum

_______________________________________________

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


References: 
 >Synthesized instance variables (From: Andreas Känner <email@hidden>)
 >Re: Synthesized instance variables (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Synthesized instance variables (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Synthesized instance variables (From: Andreas Känner <email@hidden>)

  • Prev by Date: Re: How to reduce the height of Indefinite progress bar ?
  • Next by Date: Re: most suitable framework for network app communication?
  • Previous by thread: Re: Synthesized instance variables
  • Next by thread: Re: Synthesized instance variables
  • Index(es):
    • Date
    • Thread