Hi all,
in a NSView subclass I do
- (void)setDroppingEnabled:(BOOL)flag
{
if (flag) [self registerForDraggedTypes:[self pboardTypes]];
else [self unregisterDraggedTypes];
}
- (NSArray *)pboardTypes
{
return [NSArray arrayWithObject:SOObjectsPboardType];
}
- (void)mouseDown:(NSEvent *)theEvent
{
...
NSArray *pboardTypes = [self pboardTypes];
[pboard declareTypes:pboardTypes owner:self];
[pboard setPropertyList:[array
valueForKey:@"stringRepresentation"] forType:SOObjectsPboardType];
[self dragImage:dragImage at:mouseLoc offset:dragOffset
event:theEvent pasteboard:pboard source:self slideBack:YES];
}
- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender
{
NSLog(@"draggingEntered %@", sender);
return NSDragOperationLink;
}
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender
{
...
}
This works under MacOSX as expected. Under GNUstep draggingEntered and
performDragOperation is never called when I drag the object over the
view and GNUstep shows the "do not enter sign".
What am i missing?
Thanks,
Andreas
_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep