FROM : Adam R. Maxwell
DATE : Sat May 03 03:43:50 2008
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 got decidedly lost
> trying to follow the docs.
I also got lost in the docs (I should file a bug one of these days).
Anyway, take a look at CFArray.c from Apple's CF source, specifically
the _CFArrayFastEnumeration function. Having that for an example
really helped.
hth,
Adam
DATE : Sat May 03 03:43:50 2008
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 got decidedly lost
> trying to follow the docs.
I also got lost in the docs (I should file a bug one of these days).
Anyway, take a look at CFArray.c from Apple's CF source, specifically
the _CFArrayFastEnumeration function. Having that for an example
really helped.
hth,
Adam
| Related mails | Author | Date |
|---|---|---|
| Ben | May 2, 10:41 | |
| Ben | May 2, 21:18 | |
| Jens Alfke | May 3, 03:12 | |
| Adam R. Maxwell | May 3, 03:43 | |
| Thomas Backman | May 3, 15:10 | |
| Ben | May 3, 19:08 |






Cocoa mail archive

