| Removing objects from the end going backwards will mean your remaining indexes will remain valid. So sort your indexes and remove starting with the highest index. Ali
Begin forwarded message:
From: Ayyapu Reddy Pallam <email@hidden> Date: September 30, 2005 3:42:06 PDT To: email@hidden Subject: Way of removing by value from CFMutableArray
Hi All, I have list of indices of values of CFMutableArray. If i try to remove the values from the array looping throgh the indices array using CFArrayRemoveValueAtIndex() indices may not be valid after the first removal(it decrements indices). So do we have some function like CFArrayRemoveObject() or CFArrayRemoveValue() where i can pass the value to be removed from the CFArray. Or any other way of removing by value from CFMutableArray. Thanks in advance Ayyapu Reddy
|