NSFilePromisePboardType, NSTableView, NSOutlineView (and other views...)
NSFilePromisePboardType, NSTableView, NSOutlineView (and other views...)
- Subject: NSFilePromisePboardType, NSTableView, NSOutlineView (and other views...)
- From: Dragan Milić <email@hidden>
- Date: Sun, 28 Aug 2005 17:18:26 +0200
Hi all,
No, no, this is not yet another question "how to implement promise
drag...", I'm just asking for short info. So, in 10.4 we got
-tableView:namesOfPromisedFilesDroppedAtDestination:
forDraggedRowsWithIndexes:
method in NSTableDataSource protocol, with short explanation, saying
"This method is called when a destination has accepted a promise drag.
You should return an array containing the filenames, not the full
paths, for the files that you will provide." Once again "A DESTINATION
HAS ACCEPTED A PROMISE DRAG"!! I assume that means that the promise
drag has been initiated by NSTableView instance in its data source
method -tableView:writeRows:toPasteboard: (deprecated), or the new one
-tableView:writeRowsWithIndexes:toPasteboard:. I can see no other
place to do it (I suppose noone thinks that -[NSTableView
dragPromisedFilesOfTypes:..] is prefered way of doing it). Does this
actually mean that in Tigar one can finally use
NSFilePromisePboardType like any other Pboard type, or we still
must rely on -dragPromisedFilesOfTypes:... to initiate promise drag? If
latter is the case, then I still don't see the point of having a data
source method that "is called when a destination has accepted a
promised drag" if one still can't use prefered way - that is another
data source method -tableView:writeRows... to initiate that king of
drag.
I still need to support Panther code, so I'll continue using my own
workaround and subclasses of NSTableView/NSOutlineView classes, which
enables me to use NSFilePromisePboardType together with other Pboard
types in a single drag & drop operation. I just want to know whether
one of most serious shortcomings of Cocoa API has been eliminated, so
after the need to support Panther code expires, we can start writing
some decent d'n'd code. I'm just asking for info on this subject, I'm
too lazy to set up a small test project and try it on my own.
Regards,
Milke
_______________________________________________
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