I am a bit confused as to how arrays are handled in Objective-C. If I have an array such as
NSarray *myArray = [[NSArray alloc]
You can't, because NSArray is immutable. But if you use NSMutableArray instead, then you can. See replaceObjectAtIndex:withObject::
NSArray
NSMutableArray
[myArray replaceObjectAtIndex:0 withObject:@"Y"]