forked from gobbledegook/creevey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDYCreeveyBrowser.h
26 lines (20 loc) · 875 Bytes
/
DYCreeveyBrowser.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//Copyright 2005-2023 Dominic Yu. Some rights reserved.
//This work is licensed under the Creative Commons
//Attribution-NonCommercial-ShareAlike License. To view a copy of this
//license, visit http://creativecommons.org/licenses/by-nc-sa/2.0/ or send
//a letter to Creative Commons, 559 Nathan Abbott Way, Stanford,
//California 94305, USA.
/* DYCreeveyBrowser */
@import Cocoa;
NS_ASSUME_NONNULL_BEGIN
@protocol DYCreeveyBrowserDelegate <NSBrowserDelegate>
- (void)browser:(NSBrowser *)sender typedString:(NSString *)s inColumn:(NSInteger)column;
- (void)browserWillSendAction:(NSBrowser *)sender;
@end
// allows typing to select items (assumes lists are sorted)
// allows drag and drop
// supports separate display/underlying paths
@interface DYCreeveyBrowser : NSBrowser
@property (nullable, weak) id<DYCreeveyBrowserDelegate> delegate;
@end
NS_ASSUME_NONNULL_END