Re: NSOutlineView as dragging destination for promised files
Re: NSOutlineView as dragging destination for promised files
- Subject: Re: NSOutlineView as dragging destination for promised files
- From: Patrick Gleichmann <email@hidden>
- Date: Tue, 15 Nov 2005 19:21:30 +0100
On 14.11.2005, at 23:43, Wain wrote:
Look at the documentation for <NSDraggingInfo> protocol.
"- (NSArray *)namesOfPromisedFilesDroppedAtDestination:(NSURL *)
dropDestination" is intended to be called from the operations
defined within < NSDraggingDestination> protocol which (almost) all
contain an "(id <NSDraggingInfo>) sender", messages should be sent
to this object.
Hope this helps.
Thanks, but nope :-/
In the destination outlineview I have the following code:
- (BOOL)outlineView:(NSOutlineView*)ov acceptDrop:(id<NSDraggingInfo>)
info
item:(id)item childIndex:(int)index {
NSLog(@"> %@", info);
[[info draggingSource] namesOfPromisedFilesDroppedAtDestination:
[NSURL fileURLWithPath:@"/Users/patrick/Test"]]);
The NSLog gives "NSFilePromiseDragSource" as type - an undocumented
class ?! Why isn't this my dragging source that I specified with
"source:self"?
So of course the "namesOfPromised..." fails with:
*** -[NSFilePromiseDragSource
namesOfPromisedFilesDroppedAtDestination:]: selector not recognized
[self = 0x5304bf0]
Help me 8-)
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