git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55847
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
* turning off capabilities that don't work under cocoa yet
*/
* turning off capabilities that don't work under cocoa yet
*/
-#if wxUSE_DRAG_AND_DROP
-#undef wxUSE_DRAG_AND_DROP
-#define wxUSE_DRAG_AND_DROP 0
-#endif
-
#if wxUSE_DATAVIEWCTRL
#undef wxUSE_DATAVIEWCTRL
#define wxUSE_DATAVIEWCTRL 0
#if wxUSE_DATAVIEWCTRL
#undef wxUSE_DATAVIEWCTRL
#define wxUSE_DATAVIEWCTRL 0
if ( !supported )
{
PasteboardRef pasteboard;
if ( !supported )
{
PasteboardRef pasteboard;
supported = m_dataObject->HasDataInPasteboard( pasteboard );
}
}
supported = m_dataObject->HasDataInPasteboard( pasteboard );
}
}
if ( !transferred )
{
PasteboardRef pasteboard;
if ( !transferred )
{
PasteboardRef pasteboard;
transferred = m_dataObject->GetFromPasteboard( pasteboard );
}
}
transferred = m_dataObject->GetFromPasteboard( pasteboard );
}
}
if ((m_data == NULL) || (m_data->GetFormatCount() == 0))
return (wxDragResult)wxDragNone;
if ((m_data == NULL) || (m_data->GetFormatCount() == 0))
return (wxDragResult)wxDragNone;
DragReference theDrag;
RgnHandle dragRegion;
OSStatus err = noErr;
DragReference theDrag;
RgnHandle dragRegion;
OSStatus err = noErr;
DisposeDrag( theDrag );
CFRelease( pasteboard );
gTrackingGlobals.m_currentSource = NULL;
DisposeDrag( theDrag );
CFRelease( pasteboard );
gTrackingGlobals.m_currentSource = NULL;
return gTrackingGlobals.m_result;
}
return gTrackingGlobals.m_result;
}
// passing the globals via refcon is not needed by the CFM and later architectures anymore
// but I'll leave it in there, just in case...
// passing the globals via refcon is not needed by the CFM and later architectures anymore
// but I'll leave it in there, just in case...
pascal OSErr wxMacWindowDragTrackingHandler(
DragTrackingMessage theMessage, WindowPtr theWindow,
void *handlerRefCon, DragReference theDrag );
pascal OSErr wxMacWindowDragReceiveHandler(
WindowPtr theWindow, void *handlerRefCon,
DragReference theDrag );
pascal OSErr wxMacWindowDragTrackingHandler(
DragTrackingMessage theMessage, WindowPtr theWindow,
void *handlerRefCon, DragReference theDrag );
pascal OSErr wxMacWindowDragReceiveHandler(
WindowPtr theWindow, void *handlerRefCon,
DragReference theDrag );
void wxMacEnsureTrackingHandlersInstalled()
{
void wxMacEnsureTrackingHandlersInstalled()
{
if ( !gTrackingGlobalsInstalled )
{
OSStatus err;
if ( !gTrackingGlobalsInstalled )
{
OSStatus err;
gTrackingGlobalsInstalled = true;
}
gTrackingGlobalsInstalled = true;
}
pascal OSErr wxMacWindowDragTrackingHandler(
DragTrackingMessage theMessage, WindowPtr theWindow,
void *handlerRefCon, DragReference theDrag )
pascal OSErr wxMacWindowDragTrackingHandler(
DragTrackingMessage theMessage, WindowPtr theWindow,
void *handlerRefCon, DragReference theDrag )
#endif // wxUSE_DRAG_AND_DROP
#endif // wxUSE_DRAG_AND_DROP