Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Way of removing by value from CFMutableArray



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

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Way of removing by value from CFMutableArray (From: "Ayyapu Reddy Pallam" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.