2008-06-21 04:05:30 +00:00
|
|
|
//
|
2009-03-07 21:31:44 +00:00
|
|
|
// SplitViewController.m
|
2008-06-21 04:05:30 +00:00
|
|
|
// Cog
|
|
|
|
//
|
2009-03-07 21:31:44 +00:00
|
|
|
// Created by Vincent Spader on 6/20/08.
|
2008-06-21 04:05:30 +00:00
|
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "FileTreeViewController.h"
|
2009-03-07 21:31:44 +00:00
|
|
|
#import "PlaylistLoader.h"
|
2008-06-21 04:05:30 +00:00
|
|
|
|
|
|
|
@implementation FileTreeViewController
|
|
|
|
|
2009-03-07 21:31:44 +00:00
|
|
|
- (id)init
|
2008-06-21 04:05:30 +00:00
|
|
|
{
|
2009-03-07 21:31:44 +00:00
|
|
|
return [super initWithNibName:@"FileTree" bundle:[NSBundle mainBundle]];
|
|
|
|
}
|
2008-06-21 04:05:30 +00:00
|
|
|
|
2009-03-07 21:31:44 +00:00
|
|
|
- (void)addToPlaylist:(NSArray *)urls
|
|
|
|
{
|
|
|
|
[playlistLoader willInsertURLs:urls origin:URLOriginExternal];
|
|
|
|
[playlistLoader didInsertURLs:[playlistLoader addURLs:urls sort:YES] origin:URLOriginExternal];
|
2008-06-21 04:05:30 +00:00
|
|
|
}
|
|
|
|
|
2009-08-16 16:49:34 +00:00
|
|
|
- (void)clear:(id)sender
|
|
|
|
{
|
|
|
|
[playlistLoader clear:sender];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)playPauseResume:(NSObject *)id
|
|
|
|
{
|
|
|
|
[playbackController playPauseResume:id];
|
|
|
|
}
|
2008-06-21 04:05:30 +00:00
|
|
|
|
|
|
|
@end
|