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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to