and then my array array ....
When I have an array "x"
/ P>
(A) Array Clearing
(A) Array Clearing
P> (B) Issue array Or do I need to calculate the array like: (C) Clean the array (D) for issuing array Thanks in advance [x removeAllObjects];
[x release];
( Int i = 0; i & lt; x.count; i ++) [[x object atx: i] release]; [Remove X AllObjects];
for
(int i = 0; i
(b) should be sufficient. The array's delacorteer will release all contained objects, with release for each release (many such instances will be released multiple times because they were added multiple times).
Never [[x objectAtIndex: i] release]
- You have not placed the returned object, so by releasing this you will keep your count.
Comments
Post a Comment