mirror of
https://github.com/ksherlock/ample.git
synced 2024-10-31 15:04:56 +00:00
5a098b9d00
if the media class doesn't exist (eg, hard drive with no hard drive controller) it's added but not displayed.
38 lines
727 B
Objective-C
38 lines
727 B
Objective-C
//
|
|
// MediaViewController.h
|
|
// Ample
|
|
//
|
|
// Created by Kelvin Sherlock on 8/20/2020.
|
|
// Copyright © 2020 Kelvin Sherlock. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "Media.h"
|
|
#import "Ample.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface MediaViewController : NSViewController <NSOutlineViewDelegate, NSOutlineViewDataSource>
|
|
|
|
@property (weak) IBOutlet NSOutlineView *outlineView;
|
|
@property (nonatomic) Media media;
|
|
@property NSArray *args;
|
|
|
|
- (IBAction)ejectAction:(id)sender;
|
|
- (IBAction)pathAction:(id)sender;
|
|
|
|
-(IBAction)resetMedia:(id)sender;
|
|
|
|
-(BOOL)smartRouteURL: (NSURL *)url;
|
|
-(BOOL)smartRouteFile: (NSString *)file;
|
|
|
|
@end
|
|
|
|
@interface MediaViewController (Bookmark) <Bookmark>
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|