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"
|
|
|
|
|
2013-10-11 12:03:55 +00:00
|
|
|
#import "Logging.h"
|
|
|
|
|
2007-10-16 01:22:57 +00:00
|
|
|
@implementation ContainerNode
|
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
- (BOOL)isLeaf {
|
2007-10-16 01:22:57 +00:00
|
|
|
return NO;
|
|
|
|
}
|
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
- (void)updatePath {
|
2007-10-16 01:22:57 +00:00
|
|
|
NSArray *urls = [AudioContainer urlsForContainerURL:url];
|
2022-02-07 05:49:27 +00:00
|
|
|
|
2007-10-16 01:22:57 +00:00
|
|
|
NSMutableArray *paths = [[NSMutableArray alloc] init];
|
2022-02-07 05:49:27 +00:00
|
|
|
for(NSURL *u in urls) {
|
2007-10-16 01:22:57 +00:00
|
|
|
ContainedNode *node = [[ContainedNode alloc] initWithDataSource:dataSource url:u];
|
2013-10-11 12:03:55 +00:00
|
|
|
DLog(@"Node: %@", u);
|
2007-10-16 01:22:57 +00:00
|
|
|
[paths addObject:node];
|
2016-05-05 20:05:39 +00:00
|
|
|
}
|
2022-02-07 05:49:27 +00:00
|
|
|
|
2007-10-16 01:22:57 +00:00
|
|
|
[self setSubpaths:paths];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|