+- (void)draggedImage:(NSImage *)anImage movedTo:(NSPoint)aPoint
+{
+ wxUnusedVar( anImage );
+ wxUnusedVar( aPoint );
+
+ bool optionDown = GetCurrentKeyModifiers() & optionKey;
+ wxDragResult result = optionDown ? wxDragCopy : wxDragMove;
+
+ if (wxDropSource* source = impl)
+ {
+ if (!source->GiveFeedback(result))
+ {
+ wxStockCursor cursorID = wxCURSOR_NONE;
+
+ switch (result)
+ {
+ case wxDragCopy:
+ cursorID = wxCURSOR_COPY_ARROW;
+ break;
+
+ case wxDragMove:
+ cursorID = wxCURSOR_ARROW;
+ break;
+
+ case wxDragNone:
+ cursorID = wxCURSOR_NO_ENTRY;
+ break;
+
+ case wxDragError:
+ case wxDragLink:
+ case wxDragCancel:
+ default:
+ // put these here to make gcc happy
+ ;
+ }
+
+ if (cursorID != wxCURSOR_NONE)
+ {
+ // TODO under 10.6 the os itself deals with the cursor, remove if things
+ // work properly everywhere
+#if 0
+ wxCursor cursor( cursorID );
+ cursor.MacInstall();
+#endif
+ }
+ }
+ }
+}
+