forked from gobbledegook/creevey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DYCreeveyBrowser.h
33 lines (28 loc) · 1.06 KB
/
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
27
28
29
30
31
32
//Copyright 2005 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/Cocoa.h>
@class DYTransparentGreyView;
@protocol DYCreeveyBrowserDelegate;
// allows typing to select items (assumes lists are sorted)
// allows drag and drop
// supports separate display/underlying paths
@interface DYCreeveyBrowser : NSBrowser
{
NSMutableString *typedString;
NSTimeInterval lastKeyTime;
DYTransparentGreyView *greyview; // for drag-and-drop
}
- (id <NSBrowserDelegate,DYCreeveyBrowserDelegate>)delegate;
@end
@protocol DYCreeveyBrowserDelegate <NSObject>
- (NSString*)path;
- (BOOL)setPath:(NSString *)s;
- (void)setShowInvisibles:(BOOL)b;
- (void)browser:(NSBrowser *)sender typedString:(NSString *)s inColumn:(NSInteger)column;
- (void)browserWillSendAction:(NSBrowser *)sender;
@end