Re: Synthesized instance variables
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