-/*
- * MenuTunes
- * PlaylistNode
- * Helper class for keeping track of sources, playlists and folders
- *
- * Original Author : Kent Sutherland <ksuther@ithinksw.com>
- * Responsibility : Kent Sutherland <ksuther@ithinksw.com>
- *
- * Copyright (c) 2005 iThink Software.
- * All Rights Reserved
- *
- */
-
#import "PlaylistNode.h"
_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;
}