Re: Accessing @private superclass ivars
Re: Accessing @private superclass ivars
- Subject: Re: Accessing @private superclass ivars
- From: "stephen joseph butler" <email@hidden>
- Date: Mon, 19 Feb 2007 17:08:45 -0600
2007/2/19, Keith Duncan <email@hidden>:
I'm subclassing a class which has a private NSArray ivar containing
some objects I need access to in my subclass.
I can generate the objects myself in the subclass but that means doing
all the work twice. I can't change the superclass' code and there
aren't any accessors for the array. I've exhausted everything I can
think of without success.
Any hints would be appreciated.
You could write a category method for the class that returns the ivar.
AFAICT, this should be legal.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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