I imagine this is a very dumb question, but I am perplexed.
NSArray says you can change the values of elements, but not add/
subtract/replace elements.
Let's say I have an NSArray @"Tom", @"Dick", @"Harry", nil
And I want to change Tom and Dick to Mutt and Jeff.
Is my only option to make it a MutableArray and use
replaceObjectAtIndex:0 and :1 with @"Mutt" and @"Jeff"?
My confusion is that there is no setValue:forIndex:. There is only
setValue: forKey: , but arrays do not have keys.
Is there a way just to set the value of an array element without
replacing it?
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]