Hi all,
I have an NSArray of (Product) objects that are created by parsing an XML response from a server.
In the object, it has images, and text, and ints, URLs. etc.
There are 2 requests to the server 1: list of matching products from a search - small amount of detail 2: product details: the full details.
When the second request is parsed I am trying to update the existing object in the array.
- (void) setProduct:(Product *) _product atIndex: (int) index
{
[_product retain];
[productList replaceObjectAtIndex:index withObject:_product];
}
This doesn't seem to work as when I call update and table reloadData, the new values are not present.
Should I remove the object in the array first?