Re: Numbers and mutable sets and retain counts, oh my!

2010-11-13 Thread Ken Thomases
On Nov 13, 2010, at 8:57 AM, William Squires wrote: > Let's say I have some sample code that looks like: > > -(NSMutableSet *)allOddNumbersExcept5Set > { > NSMutableSet *results = [[NSMutableSet alloc] initWithCapacity:1]; > > for (int i=1; i<=10; i+=2) > { > if (i != 5) >{ >NSString *

Numbers and mutable sets and retain counts, oh my!

2010-11-13 Thread William Squires
Okay, so I'm getting a bit melodramatic... Let's say I have some sample code that looks like: -(NSMutableSet *)allOddNumbersExcept5Set { NSMutableSet *results = [[NSMutableSet alloc] initWithCapacity:1]; for (int i=1; i<=10; i+=2) { if (i != 5) { NSString *testNumber = [NSString str