I am trying to figure out how to adopt a fast enumeration protocol (under iOS / target C) for the class I'm creating. I read the Apple docs section, but ... I didn't quite understand it!
Does anyone have an example code I could look at?
What I'm trying to do: I have an array of objects over which I want the sender to iterate. The sender wants to use the built-in design. Trick - I do not want the sender to see all the objects in the array, because some of them are not valid in the application context.
In other words, I want my iterator to return a subset of the objects in the array that match certain criteria.
I would prefer not to create new arrays in this process so as not to slow down the work.
source share