|
34 | 34 | @private |
35 | 35 |
|
36 | 36 | NSDictionary * node; |
37 | | - TFHppleElement *parent; |
| 37 | + __unsafe_unretained TFHppleElement *parent; |
38 | 38 | } |
39 | 39 |
|
40 | 40 | - (id) initWithNode:(NSDictionary *) theNode; |
41 | 41 |
|
42 | 42 | + (TFHppleElement *) hppleElementWithNode:(NSDictionary *) theNode; |
43 | 43 |
|
44 | 44 | // Returns this tag's innerHTML content. |
45 | | -@property (nonatomic, readonly) NSString *content; |
| 45 | +@property (nonatomic, copy, readonly) NSString *content; |
46 | 46 |
|
47 | 47 | // Returns the name of the current tag, such as "h3". |
48 | | -@property (nonatomic, readonly) NSString *tagName; |
| 48 | +@property (nonatomic, copy, readonly) NSString *tagName; |
49 | 49 |
|
50 | 50 | // Returns tag attributes with name as key and content as value. |
51 | 51 | // href = 'http://peepcode.com' |
52 | 52 | // class = 'highlight' |
53 | | -@property (nonatomic, readonly) NSDictionary *attributes; |
| 53 | +@property (nonatomic, strong, readonly) NSDictionary *attributes; |
54 | 54 |
|
55 | 55 | // Returns the children of a given node |
56 | | -@property (nonatomic, readonly) NSArray *children; |
| 56 | +@property (nonatomic, strong, readonly) NSArray *children; |
57 | 57 |
|
58 | 58 | // Returns the first child of a given node |
59 | | -@property (nonatomic, readonly) TFHppleElement *firstChild; |
| 59 | +@property (nonatomic, strong, readonly) TFHppleElement *firstChild; |
60 | 60 |
|
61 | 61 | // the parent of a node |
62 | | -@property (nonatomic, retain, readonly) TFHppleElement *parent; |
| 62 | +@property (nonatomic, unsafe_unretained, readonly) TFHppleElement *parent; |
63 | 63 |
|
64 | 64 | // Provides easy access to the content of a specific attribute, |
65 | 65 | // such as 'href' or 'class'. |
|
0 commit comments