|
From: | Steven Kramer |
Subject: | Re: NSTableView as drag target for NSColorPboardType |
Date: | Thu, 26 May 2005 21:49:21 +0200 |
Op 26-mei-05 om 21:24 heeft Andreas Höschler het volgende geschreven:
Hello, I have sent[tableView registerForDraggedTypes:[NSArray arrayWithObject:@"NSColorPboardType"]];on a tableView subclass. When I drag a color from the color panel to this table, I would expect- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender { NSLog(@"performDragOperation"); ... } to be called but it is not. What am I missing?
See http://developer.apple.com/documentation/Cocoa/Conceptual/DragandDrop/ Tasks/acceptingdrags.html
Have you implemented - (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender? Also try using NSColorPboardType without quotes - it's a constant defined somewhere.
Regards, Steven Kramer -- steven@sprintteam.nl http://www.sprintteam.nl/
[Prev in Thread] | Current Thread | [Next in Thread] |