# DragCursor on OSX

**URL:** <https://forum.xojo.com/t/dragcursor-on-osx/16800>\
**Category:** macOS\
**Created:** [May 26, 2014, 1:34am UTC](https://forum.xojo.com/t/dragcursor-on-osx/16800 "2014-05-26T01:34:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KarenA](https://forum.xojo.com/letter_avatar_proxy/v4/letter/k/c89c15/32.png) [@KarenA](https://forum.xojo.com/u/KarenA)\
**Post date:** [May 26, 2014, 1:34am UTC](https://forum.xojo.com/t/dragcursor-on-osx/16800/1 "2014-05-26T01:34:41Z")

</div>

On windows when you return Return True or false in DragOver the cursor changes to give feedback on where they can and can not drop the item in a control (canvas in this case.) The Xojo framework does not seem to do this on OS X…

I tried assigning a custom cursor to the DragIitem and the Canvas in DragOver to give such feedback to the user but neither worked. Is there a way to do this?

- Karen

---

<div class="post-metadata">

**Author:** ![Joe\_Ranieri](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/43a26b/32.png) [@Joe\_Ranieri](https://forum.xojo.com/u/Joe_Ranieri)\
**Post date:** [May 26, 2014, 1:44am UTC](https://forum.xojo.com/t/dragcursor-on-osx/16800/2 "2014-05-26T01:44:28Z")

</div>

> [@91650:@Karen Atkocius](#):
>
> The Xojo framework does not seem to do this on OS X…

OS X applications typically don’t give feedback when you can’t drop something, but rather when you can. For example, dragging a file in Finder onto the sidebar highlights the item in the sidebar that it’d be moved into. What I would do is have your canvas have a boolean to keep track of whether or not a drop is possible, update that boolean and invalidate the canvas in DragEnter/DragExit/DropObject, and draw something special inside of your canvas’ Paint event.

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [May 26, 2014, 9:32am UTC](https://forum.xojo.com/t/dragcursor-on-osx/16800/3 "2014-05-26T09:32:41Z")

</div>

> [@91650:@Karen Atkocius](#):
>
> I tried assigning a custom cursor to the DragIitem and the Canvas in DragOver to give such feedback to the user but neither worked. Is there a way to do this?

The cursor indeed cannot be changed while dragging an object. It changes only after the end of the event. But you can add a timer to move a small canvas next to the cursor. I tested that successfully.

Maybe you can add the green + in a circle or a wrong way sign ?

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 5:14pm UTC](https://forum.xojo.com/t/dragcursor-on-osx/16800/4 "2020-10-29T17:14:34Z")

</div>


