Desktop app ListBox not firing CellClick event when clicked

A few versions of macOS ago, and a few versions of Xojo ago, there was a bug where if you attempted to drag from within a listbox, and your code attempted to add multiple drag images to the DragItem, it would crash, silently, which was really weird as it just sort of did nothing.

This was hard to debug as it only happened:

  • with more than one row selected
  • when dragging (but not clicking, unless the click moved more than a few pixels, in which case it was actually a drag event).

Any chance this could be happening to you?

Edit: it’s this crash: NSGenericException when dragging from one listbox to another
Feedback: <https://xojo.com/issue/63255>