On Apr 11, 2008, at 12:11 PM, Stephane Huaulme wrote:
i used the abstracttree sample project step by step instructions, and i get it to work as expected except when it comes to drap and drop. comparing the nib files between my implementation and the one that comes in the sample code, i can't see anything different.

i do expect the drap and drop to require something setup properly in the nib file for the outline view, but i just can't find it.
note that i did implement:
- (BOOL)outlineView:(NSOutlineView *)outlineView writeItems:(NSArray *)items toPasteboard:(NSPasteboard *)pboard { - (BOOL)outlineView:(NSOutlineView *)outlineView acceptDrop:(id <NSDraggingInfo>)info item:(id)item childIndex:(NSInteger)index { - (NSDragOperation)outlineView:(NSOutlineView *)outlineView validateDrop:(id <NSDraggingInfo>)info proposedItem:(id)item proposedChildIndex:(NSInteger)index {


what am i missing?


Probably a call to outlineView registerForDraggedTypes:

corbin

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to