NSOutlineView as dragging destination for promised files
NSOutlineView as dragging destination for promised files
- Subject: NSOutlineView as dragging destination for promised files
- From: Patrick Gleichmann <email@hidden>
- Date: Mon, 14 Nov 2005 21:04:59 +0100
My dragging source contains the following code:
[self dragPromisedFilesOfTypes:[NSArray arrayWithObject:@"jpg"]
fromRect:dragLoc source:self slideBack:TRUE event:ev];
and
- (NSArray*)namesOfPromisedFilesDroppedAtDestination:(NSURL*)
dropDestination {
// NSLog(@"namesOf.. %@", dropDestination);
return [NSArray arrayWithObject:@"test.jpg"];
}
Now I have a delegate for a NSOutlineView - dragging destination -
that contains
- (NSDragOperation)outlineView:(NSOutlineView*)outlineView
validateDrop:(id<NSDraggingInfo>)info
// The usual checks..
return NSDragOperationCopy;
The "outlineView:validateDrop:" method is called, but where and how
am I supposed to call the "namesOfPromisedFilesDroppedAtDestination:"
of the dragging source?
Thanks alot,
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