Skip to content
Browse files

Merge commit '036c41'

  • Loading branch information...
2 parents a7cf227 + 036c410 commit 53374984c7a782947a5c08c155425f137514ca63 @stevestreza stevestreza committed May 1, 2010
Showing with 2 additions and 5 deletions.
  1. +2 −2 MGTwitterStatusesYAJLParser.h
  2. +0 −3 MGTwitterStatusesYAJLParser.m
View
4 MGTwitterStatusesYAJLParser.h
@@ -11,8 +11,8 @@
#import "MGTwitterYAJLParser.h"
@interface MGTwitterStatusesYAJLParser : MGTwitterYAJLParser {
- NSMutableArray *_dictionaries; //an array of NSMutableDictionary objects
- NSMutableArray *_dictionaryKeys; //an array of NSMutableDictionary keys corresponding to _dictionaries
+ NSMutableArray *_dictionaries; // effectively a stack for parsing nested dictionaries
+ NSMutableArray *_dictionaryKeys;
}
@end
View
3 MGTwitterStatusesYAJLParser.m
@@ -20,7 +20,6 @@ - (void)addValue:(id)value forKey:(NSString *)key
return;
}
- //add the item to its dictionary
NSMutableDictionary *lastDictionary = [_dictionaries lastObject];
[lastDictionary setObject:value forKey:key];
@@ -35,13 +34,11 @@ - (void)startDictionaryWithKey:(NSString *)key
NSLog(@"status: dictionary start = %@", key);
#endif
- //initialize the array that will hold all of the dictionaries if it doesn't exist yet
if (!_dictionaries)
{
_dictionaries = [[NSMutableArray alloc] init];
}
- //initialize the array that will hold all of the dictionary keys if it doesn't exist yet
if (!_dictionaryKeys)
{
_dictionaryKeys = [[NSMutableArray alloc] init];

0 comments on commit 5337498

Please sign in to comment.
Something went wrong with that request. Please try again.