Skip to content
This repository has been archived by the owner on Feb 16, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:samsoffes/sstoolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
soffes committed Jun 16, 2011
2 parents b22f774 + 3166653 commit c02bfb0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion SSToolkit/SSCollectionView.m
Expand Up @@ -521,12 +521,19 @@ - (NSMutableDictionary *)_sectionInfoForIndex:(NSUInteger)section {

- (id)_sectionInfoItemForKey:(NSString *)key section:(NSUInteger)section {
NSDictionary *dictionary = [self _sectionInfoForIndex:section];
return [dictionary objectForKey:key];
id object = [dictionary objectForKey:key];
if (object == [NSNull null]) {
return nil;
}
return object;
}


- (void)_setSectionInfoItem:(id)object forKey:(NSString *)key section:(NSUInteger)section {
NSMutableDictionary *dictionary = [self _sectionInfoForIndex:section];
if (!object) {
object = [NSNull null];
}
[dictionary setObject:object forKey:key];
}

Expand Down

0 comments on commit c02bfb0

Please sign in to comment.