I want to get access to the first element in CCArray. I tried to use CCARRAY_FOREACH to read the element. But, it is not efficient. Is there any function supporting this feature?
“CCObject* lastObject();” ?
Thank you for your reply. However, does last object not refer to the latest added one? What I want is the oldest element in the CCArray.
Wing Check wrote:
That is up to you, how you decided to order the inserts.