This repository was archived by the owner on Jun 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMGTwitterXMLParser.h
More file actions
49 lines (39 loc) · 1.48 KB
/
MGTwitterXMLParser.h
File metadata and controls
49 lines (39 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// MGTwitterXMLParser.h
// MGTwitterEngine
//
// Created by Matt Gemmell on 18/02/2008.
// Copyright 2008 Instinctive Code.
//
#define kMGTwitterDateFormatString @"EEE MMM dd HH:mm:ss ZZZ yyyy"
#import "MGTwitterEngineGlobalHeader.h"
#import "MGTwitterParserDelegate.h"
@interface MGTwitterXMLParser : NSObject
#if __IPHONE_OS_VERSION_MAX_ALLOWED > 30200
<NSXMLParserDelegate>
#endif
{
__weak NSObject <MGTwitterParserDelegate> *delegate; // weak ref
NSString *identifier;
MGTwitterRequestType requestType;
MGTwitterResponseType responseType;
NSData *xml;
NSMutableArray *parsedObjects;
NSXMLParser *parser;
__weak NSMutableDictionary *currentNode;
NSString *lastOpenedElement;
// To remove the warning on the depracated method
// As per http://mattgemmell.com/2008/02/22/mgtwitterengine-twitter-from-cocoa/comment-page-3#comment-42022
NSDateFormatter *dateFormatter;
}
@property (nonatomic, retain) NSDateFormatter *dateFormatter;
+ (id)parserWithXML:(NSData *)theXML delegate:(NSObject *)theDelegate
connectionIdentifier:(NSString *)identifier requestType:(MGTwitterRequestType)reqType
responseType:(MGTwitterResponseType)respType;
- (id)initWithXML:(NSData *)theXML delegate:(NSObject *)theDelegate
connectionIdentifier:(NSString *)identifier requestType:(MGTwitterRequestType)reqType
responseType:(MGTwitterResponseType)respType;
- (NSString *)lastOpenedElement;
- (void)setLastOpenedElement:(NSString *)value;
- (void)addSource;
@end