_name = [n retain];
_type = t;
_index = i;
- _children = [[NSMutableArray alloc] init];
+ _children = nil;
_parent = nil;
}
return self;
- (NSMutableArray *)children
{
+ if (!_children) {
+ _children = [[NSMutableArray alloc] init];
+ }
return _children;
}