]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/dnd.cpp
setting the correct event object for EVT_ENTER_WINDOW and EVT_LEAVE_WINDOW
[wxWidgets.git] / src / mac / dnd.cpp
index cfe9297e3c3147f4c57f9c8c92de38d50291b421..33ad69d413848af188e4a2af7eda7b3915f47bbf 100644 (file)
@@ -211,7 +211,7 @@ bool wxDropTarget::GetData()
                   {
                     HFSFlavor* theFile = (HFSFlavor*) theData ;
                     wxString name = wxMacFSSpec2MacFilename( &theFile->fileSpec ) ;
-                    m_dataObject->SetData( format , name.Length() + 1, name ) ;
+                    ((wxFileDataObject*)m_dataObject)->AddFile( name ) ;
                   }
                   else
                   {
@@ -259,7 +259,7 @@ wxDropSource::~wxDropSource()
 }
 
 
-wxDragResult wxDropSource::DoDragDrop( bool allowMove )
+wxDragResult wxDropSource::DoDragDrop(int WXUNUSED(flags))
 {
     wxASSERT_MSG( m_data, wxT("Drop source: no data") );