Implementing fast enumeration

2008-05-03 Thread Ben
I have been reading the documentation for implementing the NSFastEnumeration protocol and am having some difficulties following it. For completeness, here is the protocol method: - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf

Re: Implementing fast enumeration

2008-05-03 Thread Thomas Backman
Hmm, your previous message/thread made it and has two answers. Regards, Thomas On May 2, 2008, at 10:41 AM, Ben wrote: I have been reading the documentation for implementing the NSFastEnumeration protocol and am having some difficulties following it. For completeness, here is the

Re: Implementing fast enumeration

2008-05-03 Thread Ben
On 3 May 2008, at 02:43, Adam R. Maxwell wrote: On May 2, 2008, at 12:18 PM, Ben wrote: Re-sending as this did not seem to get make it to the list. I have been reading the documentation for implementing the NSFastEnumeration protocol and am having some difficulties following it.

Implementing fast enumeration

2008-05-02 Thread Ben
Re-sending as this did not seem to get make it to the list. I have been reading the documentation for implementing the NSFastEnumeration protocol and am having some difficulties following it. For completeness, here is the protocol method: -

Re: Implementing fast enumeration

2008-05-02 Thread Jens Alfke
On 2 May '08, at 12:18 PM, Ben wrote: I have a C array where the elements within it can be converted into multiple objects. Say I have 5 objects. Do I provide them all in one go and return the total number? Or just one per call and return the number remaining? Return as many as you can

Re: Implementing fast enumeration

2008-05-02 Thread Adam R. Maxwell
On May 2, 2008, at 12:18 PM, Ben wrote: Re-sending as this did not seem to get make it to the list. I have been reading the documentation for implementing the NSFastEnumeration protocol and am having some difficulties following it. [...] Apologies if these are basic questions, but I