Custom view drag to NSOutlineView and Finder
Custom view drag to NSOutlineView and Finder
- Subject: Custom view drag to NSOutlineView and Finder
- From: Patrick Gleichmann <email@hidden>
- Date: Wed, 9 Nov 2005 20:34:56 +0100
My first custom view ("Dragging source") executes the following
inside "- (void)mouseDragged:":
[self dragPromisedFilesOfTypes:[NSArray arrayWithObject:@"jpg"]
fromRect:/*location...*/ source:self slideBack:TRUE event:ev];
Dropping files to the Finder works fine ("- (NSArray*)
namesOfPromisedFilesDroppedAtDestination:" is called), but it doesn't
work with my NSOutlineView-datasource. The method
- (NSDragOperation)
tableView:validateDrop:proposedRow:proposedDropOperation:
is never called, even though I registered the "JPG" as type:
[m_myOutlineView registerForDraggedTypes:[NSArray
arrayWithObject:@"jpg"]];
Whats wrong?
Thanks,
Patrick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden