Re: Drag and Drop: Cocoa window in Carbon app...
Re: Drag and Drop: Cocoa window in Carbon app...
- Subject: Re: Drag and Drop: Cocoa window in Carbon app...
- From: Jérome Foucher <email@hidden>
- Date: Fri, 20 Feb 2004 08:14:17 +0100
Le 20 fivr. 04, ` 00:19, Allan Dushan a icrit :
I have a Carbon app that uses a Cocoa bundle. The Carbon app loads the
Cocoa bundle and gets a function pointer to the initialization function
for the Cocoa bundle. Then through the initialization function the
Cocoa bundle displays a Cocoa window with an NSTableView in it.
If I try to drag a file from the finder to the NSTableView and release
the mouse, the file just snaps back. The NSTableView is registered to
receive NSFileContentsPboardType, but the
validateDrop:proposedRow:proposedDropOperation never gets called.
I use that technique myself and don't have any problem.....
Did you add :
- (NSDrapOperation)tableView:(NSTableView*)tv validateDrop:(id)info
proposedRow:(int)row proposedDragOperation(NSDrapOperation)op
to your tableView's delegate too ?
Jirome
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.