• 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: Accessing @private superclass ivars
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Accessing @private superclass ivars
      • From: Joar Wingfors <email@hidden>
References: 
 >Accessing @private superclass ivars (From: Keith Duncan <email@hidden>)

  • Prev by Date: building upon existing screensavers?
  • Next by Date: Re: Binding NSTreeController to NSArray
  • Previous by thread: Accessing @private superclass ivars
  • Next by thread: Re: Accessing @private superclass ivars
  • Index(es):
    • Date
    • Thread