Re: ARC and NSFastEnumeration

2011-09-19 Thread Greg Parker
't like the way > > - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState > *)state objects:(id *)stackbuf count:(NSUInteger)len > > is implemented. > > Does anyone have any examples of ARC and NSFastEnumeration they can refer me > to? Try declaring it like this

Re: ARC and NSFastEnumeration

2011-09-19 Thread Graham Cox
If it has an NSArray, you don't have to follow that tutorial - NSArray already implements NSFastEnumeration, so your wrapper can simply call the same methods on NSArray. Job done. The tutorial is somewhat artificial in that it creates an object using a C array (and secondly a linked list) as it

ARC and NSFastEnumeration

2011-09-19 Thread Devraj Mukherjee
State *)state objects:(id *)stackbuf count:(NSUInteger)len is implemented. Does anyone have any examples of ARC and NSFastEnumeration they can refer me to? Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reques