X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/9234efdd6caadd01f9b28637b44b7f88c42e0cec..HEAD:/PlaylistNode.m diff --git a/PlaylistNode.m b/PlaylistNode.m index 12ae00b..ec9863d 100644 --- a/PlaylistNode.m +++ b/PlaylistNode.m @@ -1,16 +1,3 @@ -/* - * MenuTunes - * PlaylistNode - * Helper class for keeping track of sources, playlists and folders - * - * Original Author : Kent Sutherland - * Responsibility : Kent Sutherland - * - * Copyright (c) 2005 iThink Software. - * All Rights Reserved - * - */ - #import "PlaylistNode.h" @@ -27,7 +14,7 @@ _name = [n retain]; _type = t; _index = i; - _children = [[NSMutableArray alloc] init]; + _children = nil; _parent = nil; } return self; @@ -53,6 +40,9 @@ - (NSMutableArray *)children { + if (!_children) { + _children = [[NSMutableArray alloc] init]; + } return _children; }