Clean up redundant paths automatically, and on startup. Also refresh the preferences dialog path list every time it is opened. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
24 lines
392 B
Objective-C
24 lines
392 B
Objective-C
//
|
|
// SandboxPathBehaviorController.h
|
|
// Preferences
|
|
//
|
|
// Created by Christopher Snowhill on 6/19/22.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface SandboxPathBehaviorController : NSArrayController
|
|
|
|
- (void)refresh;
|
|
|
|
- (void)addUrl:(NSURL *)url;
|
|
- (void)removeToken:(id)token;
|
|
- (void)removeStaleEntries;
|
|
|
|
- (BOOL)matchesPath:(NSURL *)url;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|