Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 387db9d380
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 39 lines (25 sloc) 1.103 kb
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 33 34 35 36 37 38
#import <Cocoa/Cocoa.h>

/*
This class implements most of the NSDraggingDestination protocol,
making it a little easier to make any NSTextView a dragging destination.
Things which must be done elsewhere:
- Somewhere,
- send me -unregisterDraggedTypes, followed by
-registerForDraggedTypes: to the dragging destination NSView.
- If scrolling is desired, send configureScrollingHorzontal:vertical
Suggestions: Do these in a window controller's -awakeFromNib

- Dragging destination NSView must have a delegate, or be in a window with a delegate,
which implements the SSYDragDestinationTextViewDelegate protcol.


*/

@interface SSYDragDestinationTextView : NSTextView {
BOOL _isInDrag ;
BOOL _tabToNextKeyView ;
}


/*!
@brief Sets the ivar _tabToNextKeyView

@details By default, NSTextView accepts hitting the tab key as a text character.
Setting this to YES tells it to tab to the next key view, like an NSTextField does.
@param YES to tab to the next key view, NO for the default NSTextView behavior.
*/
- (void)setTabToNextKeyView:(BOOL)yn ;

@end


Something went wrong with that request. Please try again.