2007-10-16 01:22:57 +00:00
|
|
|
//
|
|
|
|
// ContainerNode.m
|
|
|
|
// Cog
|
|
|
|
//
|
|
|
|
// Created by Vincent Spader on 10/15/07.
|
|
|
|
// Copyright 2007 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "ContainerNode.h"
|
|
|
|
#import "CogAudio/AudioContainer.h"
|
|
|
|
|
|
|
|
#import "ContainedNode.h"
|
|
|
|
|
|
|
|
@implementation ContainerNode
|
|
|
|
|
|
|
|
- (BOOL)isLeaf
|
|
|
|
{
|
|
|
|
return NO;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)updatePath
|
|
|
|
{
|
|
|
|
NSArray *urls = [AudioContainer urlsForContainerURL:url];
|
|
|
|
|
|
|
|
NSMutableArray *paths = [[NSMutableArray alloc] init];
|
2008-02-20 00:54:45 +00:00
|
|
|
for (NSURL *u in urls)
|
2007-10-16 01:22:57 +00:00
|
|
|
{
|
|
|
|
ContainedNode *node = [[ContainedNode alloc] initWithDataSource:dataSource url:u];
|
|
|
|
NSLog(@"Node: %@", u);
|
|
|
|
[paths addObject:node];
|
2009-09-02 04:14:07 +00:00
|
|
|
[node release];
|
2007-10-16 01:22:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[self setSubpaths:paths];
|
|
|
|
|
|
|
|
[paths release];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|