Re: HFS promise drag operation in Tiger
Re: HFS promise drag operation in Tiger
- Subject: Re: HFS promise drag operation in Tiger
- From: Corbin Dunn <email@hidden>
- Date: Fri, 3 Jun 2005 17:46:32 -0700
I'm still with Panther, and before switching to Tiger very soon, I just want to ask developers who work in Tiger whether has something changed in the way that promise files drag operation is implemented in Tiger, namely can one use NSFilesPromisePboardType like any other pasteboard type, or one still must rely only on -dragPromisedFilesOfTypes:fromRect:source:slideBack:event:. The way it works in Panther in Jaguar demands much workaround if one wants to do promise drag from NSTableView/NSOutlineView, and if some other dragging is needed along with promises, the situation gets even worse.
Tiger now has this for NSTableView:
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 /* NSTableView data source objects can support file promised drags via by adding NSFilesPromisePboardType to the pasteboard in tableView:writeRowsWithIndexes:toPasteboard:. NSTableView implements -namesOfPromisedFilesDroppedAtDestination: to return the results of this data source method. This method should returns an array of filenames for the created files (filenames only, not full paths). The URL represents the drop location. For more information on file promise dragging, see documentation on the NSDraggingSource protocol and -namesOfPromisedFilesDroppedAtDestination:. */ - (NSArray *)tableView:(NSTableView *)tv namesOfPromisedFilesDroppedAtDestination:(NSURL *)dropDestination forDraggedRowsWithIndexes:(NSIndexSet *)indexSet; #endif
-corbin |
_______________________________________________
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