Re: exchangeObjectAtIndex (was NSMutableArray: where is addObjectIfAbsent:?)
Re: exchangeObjectAtIndex (was NSMutableArray: where is addObjectIfAbsent:?)
- Subject: Re: exchangeObjectAtIndex (was NSMutableArray: where is addObjectIfAbsent:?)
- From: Marco Scheurer <email@hidden>
- Date: Wed, 26 Jun 2002 18:23:11 +0200
On Wednesday, June 26, 2002, at 05:13 pm, Shawn Erickson wrote:
On Wednesday, June 26, 2002, at 07:49 AM, Marco Scheurer wrote:
And can someone explain to me what
- (void)exchangeObjectAtIndex:(unsigned)idx1
withObjectAtIndex:(unsigned)idx2
is doing in NSArray instead of NSMutableArray ?
Humm... it is part of the NSExtendedArray category when it most likely
should be part of the NSExtendedMutableArray category.
You have me stumped. Have you trying calling it to see if it actually
modifies an NSArray?
In fact this is a bug in the doc. Looking at a class-dump of Foundation
shows that this method is in NSMutableArray.
And using this method on an NSArray raises an exception.
Marco Scheurer
Sen:te, Lausanne, Switzerland
http://www.sente.ch
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.