| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
@interface NSArray : NSObject <NSCopying, NSMutableCopying, NSCoding> - (unsigned)count; - (id)objectAtIndex:(unsigned)index; @end
And:
@interface NSMutableArray : NSArray - (void)addObject:(id)anObject; - (void)insertObject:(id)anObject atIndex:(unsigned)index; - (void)removeLastObject; - (void)removeObjectAtIndex:(unsigned)index; - (void)replaceObjectAtIndex:(unsigned)index withObject:(id)anObject; @end
The rest of the implementation on the NSArray and NSMutableArray classes are implemented entirely in terms of those methods.
[...] In the context of the 2D array, all of the above methods could be made to do something semi-reasonable in such a context.
Implementing a subclass of NSObject that offers a 2D array of objects would be straightforward, as well.
--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
| References: | |
| >Re: Help in 2 Diamensional Array (From: Andy Lee <email@hidden>) | |
| >Re: Help in 2 Diamensional Array (From: William Bumgarner <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.