Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ff9733ac39
Fetching contributors…

Cannot retrieve contributors at this time

67 lines (53 sloc) 1.136 kb
//
// MGTwitterMiscYAJLParser.m
// MGTwitterEngine
//
// Created by Matt Gemmell on 11/02/2008.
// Copyright 2008 Instinctive Code.
//
#import "MGTwitterMiscYAJLParser.h"
#define DEBUG_PARSING 0
@implementation MGTwitterMiscYAJLParser
- (void)addValue:(id)value forKey:(NSString *)key
{
if (_results)
{
[_results setObject:value forKey:key];
#if DEBUG_PARSING
NSLog(@"misc: results: %@ = %@ (%@)", key, value, NSStringFromClass([value class]));
#endif
}
}
- (void)startDictionaryWithKey:(NSString *)key
{
#if DEBUG_PARSING
NSLog(@"misc: dictionary start = %@", key);
#endif
if (! _results)
{
_results = [[NSMutableDictionary alloc] initWithCapacity:0];
}
}
- (void)endDictionary
{
[_results setObject:[NSNumber numberWithInt:requestType] forKey:TWITTER_SOURCE_REQUEST_TYPE];
[parsedObjects addObject:_results];
[_results release];
_results = nil;
#if DEBUG_PARSING
NSLog(@"misc: dictionary end");
#endif
}
- (void)startArrayWithKey:(NSString *)key
{
#if DEBUG_PARSING
NSLog(@"misc: array start = %@", key);
#endif
}
- (void)endArray
{
#if DEBUG_PARSING
NSLog(@"misc: array end");
#endif
}
@end
Jump to Line
Something went wrong with that request. Please try again.