- wxFileDataObject *fdo = dynamic_cast<wxFileDataObject*>(m_dataObject);
- wxASSERT( fdo != NULL );
-
- if ((theData != NULL) && (fdo != NULL))
- {
- HFSFlavor* theFile = (HFSFlavor*) theData;
- wxString name = wxMacFSSpec2MacFilename( &theFile->fileSpec );
-
- if ( !firstFileAdded )
- {
- // reset file list
- fdo->SetData( 0, "" );
- firstFileAdded = true;
- }
-
- if (!name.IsEmpty())
- fdo->AddFile( name );
- }
+ HFSFlavor* theFile = (HFSFlavor*)theData;
+ wxString name = wxMacFSSpec2MacFilename( &theFile->fileSpec );
+
+ if (!name.empty())
+ filenamesPassed += name + wxT("\n");