• 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: Re: Sub classing.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Sub classing.


  • Subject: Re: Re: Sub classing.
  • From: "Alan Smith" <email@hidden>
  • Date: Tue, 5 Dec 2006 13:53:18 -0500

Hi Simone,

Bill was saying that the category is *not* the way to go, I agree.
Wrap a private instance of NSMutableArray and write methods like:

- (void)setObject:(id)object atIndex:(int)index
{
 [array setObject: object atIndex: index];
}
- (id)objectAtIndex:(int)index
{
 return [array objectAtIndex: index];
}

Good luck to you, Simone, and Sandro.
Peace, Alan

--
// Quotes from yours truly -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
"When the World realizes that religion really is unnecessary, then it
shall evolve."
_______________________________________________

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


References: 
 >Re: Sub classing. (From: Bill Bumgarner <email@hidden>)
 >Re: Sub classing. (From: "Simone Tessaro" <email@hidden>)

  • Prev by Date: NSRulerView Question
  • Next by Date: Re: Synchronizing Thread Execution
  • Previous by thread: Re: Sub classing.
  • Next by thread: Faking out modality with validateMenuItem:
  • Index(es):
    • Date
    • Thread