mirror of
https://github.com/ksherlock/ample.git
synced 2024-10-31 15:04:56 +00:00
ef2bbeb9c3
commit c41312ac604526fbfa8eb9c70c26afb5711531ed Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Mon Jun 7 22:55:43 2021 -0400 replace custom table delegate/datasource with array controller required a few tweaks to get the binding correct and equivalent to the hand-rolled version. The only advantage is the filtering capability (currently All/Missing) Also, refreshing didn't update the status and url if the local file had been deleted. commit 3aedf237344fa9fbb8225cf3513a27da9647ea07 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Mon Jun 7 21:13:39 2021 -0400 add toolbar and array controller to filter missing roms, etc.
35 lines
695 B
Objective-C
35 lines
695 B
Objective-C
//
|
|
// DownloadWindowController.h
|
|
// Ample
|
|
//
|
|
// Created by Kelvin Sherlock on 9/2/2020.
|
|
// Copyright © 2020 Kelvin Sherlock. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface DownloadWindowController : NSWindowController <NSWindowRestoration>
|
|
|
|
@property NSString *currentROM;
|
|
@property NSInteger currentCount;
|
|
@property NSInteger totalCount;
|
|
@property NSInteger errorCount;
|
|
@property BOOL active;
|
|
|
|
+(instancetype)sharedInstance;
|
|
|
|
|
|
@end
|
|
|
|
@interface DownloadWindowController (URL) <NSURLSessionTaskDelegate, NSURLSessionDownloadDelegate>
|
|
@end
|
|
|
|
|
|
@interface DownloadWindowController (Menu) <NSMenuDelegate, NSMenuItemValidation>
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|