Stuck - Drag/Drop from textView to tableView
Stuck - Drag/Drop from textView to tableView
- Subject: Stuck - Drag/Drop from textView to tableView
- From: Tony Cate <email@hidden>
- Date: Tue, 6 Apr 2004 17:35:20 -0500
I want to drag text from a textView and drop it on a tableView,
converting the text to table entries. I did a search on Mamasam and
found Scott Anguish's note that he had to do this once. Apparently, he
sub-classed NSScrollView and did all the drag and drop stuff there.
I sub-classed NSScrollView. I registered the drop:
@implementation MyScrollView
- (id)initWithFrame:(NSRect)myFrame
{
NSArray* typeArray;
self = [super initWithFrame:myFrame];
if (!self){
return nil;
}
typeArray = [NSArray arrayWithObjects:NSStringPboardType, nil];
[self registerForDraggedTypes:typeArray];
return self;
}
I added all the dragging methods. And I get nothing. The initWithFrame
gets a hit, but that's it.
I would appreciate guidance on this.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.