mirror of
https://github.com/textmate/textmate.git
synced 2026-01-23 13:47:54 -05:00
23 lines
730 B
Objective-C
23 lines
730 B
Objective-C
extern NSUInteger const OakChoiceMenuKeyUnused;
|
|
extern NSUInteger const OakChoiceMenuKeyReturn;
|
|
extern NSUInteger const OakChoiceMenuKeyTab;
|
|
extern NSUInteger const OakChoiceMenuKeyCancel;
|
|
extern NSUInteger const OakChoiceMenuKeyMovement;
|
|
|
|
@interface OakChoiceMenu : NSResponder <NSTableViewDataSource>
|
|
{
|
|
NSWindow* window;
|
|
NSTableView* tableView;
|
|
NSArray* choices;
|
|
NSUInteger choiceIndex;
|
|
NSUInteger keyAction;
|
|
NSPoint topLeftPosition;
|
|
}
|
|
@property (nonatomic) NSArray* choices;
|
|
@property (nonatomic) NSUInteger choiceIndex;
|
|
@property (nonatomic, readonly) NSString* selectedChoice;
|
|
- (void)showAtTopLeftPoint:(NSPoint)aPoint forView:(NSView*)aView;
|
|
- (BOOL)isVisible;
|
|
- (NSUInteger)didHandleKeyEvent:(NSEvent*)anEvent;
|
|
@end
|