diff options
Diffstat (limited to 'Classes/SectionDictionary.m')
-rw-r--r-- | Classes/SectionDictionary.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Classes/SectionDictionary.m b/Classes/SectionDictionary.m index 8845b2b..b183725 100644 --- a/Classes/SectionDictionary.m +++ b/Classes/SectionDictionary.m @@ -37,13 +37,16 @@ - (void) appendObject:(id)anObject forKey:(id)aKey { NSMutableArray *store = [theRealDictionary objectForKey:aKey]; if (store == nil) { + [indexMap setObject:aKey forKey:[NSString stringWithFormat:@"%d", index]]; + index++; + NSMutableArray *store = [[[NSMutableArray alloc] init] autorelease]; [store addObject:anObject]; [theRealDictionary setObject:store forKey:aKey]; } else [store addObject:anObject]; - NSLog(@"number of rows: %d", [[theRealDictionary objectForKey:aKey] count]); + //NSLog(@"number of rows: %d", [[theRealDictionary objectForKey:aKey] count]); } - (id) objectForIndex:(NSInteger)i { |