Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help in 2 Diamensional Array



On Mar 31, 2006, at 11:56 AM, j o a r wrote:
On 31 mar 2006, at 18.32, William Bumgarner wrote:

your own array class, potentially as a subclass of NSArray (or NSMutableArray).

Is it really such a good idea to tell a newbie to attempt to create subclasses of a class cluster? ;-)

Even if NSArray were a regular class I personally would use a wrapper class rather than a subclass, because I don't want that class's interface to include NSArray baggage that isn't relevant to my needs. For example, I don't want to have to figure out the semantics of -arrayByAddingObject: in my new class. It gets hairier if I subclass NSMutableArray.


I think it's better we wait for Anoop to tell us what he's going to use it for. I have a hunch that there might be an altogether different solution for this problem.

You're probably right, but what the heck, I chimed in anyway. :)

--Andy

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.