Modal Dialog and Drag & Drop in a NSTableView
Modal Dialog and Drag & Drop in a NSTableView
- Subject: Modal Dialog and Drag & Drop in a NSTableView
- From: Stéphane Sudre <email@hidden>
- Date: Wed, 15 Jun 2005 20:12:23 +0200
Stupid question probably but I didn't see an answer in the archives.
I have a modal dialog which has been launched using:
[NSApp runModalForWindow:IBwindow_];
Within the window I have a NSTableView.
I would like to drag & drop files from the Finder into this TableView.
I registered for the appropriate PasteBoardType.
The delegate of the NSTableView is set to the appropriate controller.
The controller has the appropriate acceptDrop and validateDrop methods.
Everything looks fine (I'm using code which is working perfectly well
in sheets or windows) but the sad truth is that the drop is not seen at
all.
I added some logging stuff in
tableView:validateDrop:proposedRow:proposedDropOperation: but no output.
I tried using the uggly worksWhenModal trick but this did not solve the
problem.
Any idea?
Is it possible to do drag and drop in a Modal dialog (I must confess I
haven't find any Cocoa application doing this for the moment)?
Just in case, I'm running Mac OS X 10.2.8.
_______________________________________________
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