Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

zcarter

macrumors member
Original poster
Apr 21, 2007
46
0
Hey guys..

Lets say I make the array

NSArray *array = [[NSArray alloc] initWithObjects:mad:"first", @"second", @"third", nil];

Lets say I want to go back and change a specific value in that array at a certain index number..

How would I do that?

Obviously I know I can do it Manually....but ..lets say later on in the script, I need to add more to it, or change a value..

How would I do that?

- Zac
 

larkost

macrumors 6502a
Oct 13, 2007
534
1
You need to use NSMutableArray if you are going to change things. Take a look at the documentation and things should be more clear.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.