Re: Changing content of object inside NSMutableArray

2009-07-03 Thread Ken Thomases
On Jul 2, 2009, at 5:36 PM, Agha Khan wrote: I have saved some objects inside GameArray (type NSMutableArray) and I would like to change of content of an object inside that array. GameObj is type of UIView so it has a frame. GameObj* p = [GameArray objectAtIndex:0]; p.frame = frame; This wo

Re: Changing content of object inside NSMutableArray

2009-07-02 Thread Nick Zitzmann
On Jul 2, 2009, at 4:36 PM, Agha Khan wrote: This works, but this is not changing the content inside the GameArray. How this can be done. Use -replaceObjectAtIndex:withObject:. You are responsible for maintaining your own arrays; changing a pointer will not change the contents of the ar

Changing content of object inside NSMutableArray

2009-07-02 Thread Agha Khan
HI I have saved some objects inside GameArray (type NSMutableArray) and I would like to change of content of an object inside that array. GameObj is type of UIView so it has a frame. GameObj* p = [GameArray objectAtIndex:0]; p.frame = frame; This works, but this is not changing the content