Dragging Methods for NSOutlineView
Dragging Methods for NSOutlineView
- Subject: Dragging Methods for NSOutlineView
- From: Craig Bakalian <email@hidden>
- Date: Thu, 29 May 2003 11:29:24 -0400
Hi,
What would stop a dragging method from firing in a NSOutlineView or
what am I not doing to cause it to fire? This is in my data source:
-(BOOL)outlineView: (NSOutlineView *)olv writeItems: (NSArray *)items
toPasteBoard: (NSPasteboard *)pboard
{
NSLog(@"hello");
questions = items;
[pboard declareTypes: [NSArray arrayWithObjects: MyDragType,
NSStringPboardType, nil] owner: self];
[pboard setData: [NSData data] forType: MyDragType];
[pboard setString: [questions description] forType:
NSStringPboardType];
return YES;
}
and this also:
-(void)awakeFromNib
{
[[self window] setFrameUsingName: @"Outline View"];
[[self window] setFrameAutosaveName: @"Outline View"];
[outlineView registerForDraggedTypes: [NSArray arrayWithObjects:
MyDragType, NSStringPboardType, nil]];
}
I never get a "hello".
Craig Bakalian
www.eThinkingCap.com
_______________________________________________
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.