Posting this because I think it affects every one of us and I can’t find a single report of it yet.
On macOS 27.2, any Xojo ListBox drag hangs the application forever. This includes drag-reordering rows, and it includes the Xojo IDE: on 27.2 I cannot drag a control from the Library onto a window in the layout editor without hanging the IDE.
What I have ruled out, in case it saves anyone the time:
- Not hardware. M5 Max, M3 Air and M1 Pro, all on 27.2, all hang.
- Not the OS in general. An M1 Air on macOS 27.0 public release works perfectly.
- Not my environment. Reproduced in a brand-new clean user account.
- Not a stale state. A reboot does not clear it.
- Not my Xojo version. Reproduced on 2025r2.1 and on 2026r2.1.
- Not new to the RC. It has been this way since the very first 27.2 beta, through every seed, and is still present in 27.2 (26B118).
- Not my app. Reproduced in several unrelated apps I’ve built, and in the IDE.
- Not the drag picture. Removing the custom
DragItem.DragPicturechanges nothing.
Where it hangs, and it is a SPIN, not a deadlock. A stackshot shows the main thread inside Xojo’s own nested run loop, burning ~93% of a core:
NuListbox::HandleClick
RuntimeListbox::HandleRowClick
RuntimeListbox::HandleRowDrag
RuntimeListbox::PerformDragOperation
CocoaPerformDrag(DragItemObject*)
_CFRunLoopRunSpecificWithOptions (CoreFoundation) <-- spinning
Main thread CPU was 1.300s over 1.40s of sampling. Across 14 samples it sits at 11 different offsets inside __CFRunLoopRun, and _kernelrpc_mach_port_insert_member_trap shows up in 4 of them, so the loop is re-adding sources to its port set every iteration. Meanwhile com.apple.NSEventThread used 0.005s over the same window: it is alive but has nothing to deliver.
Read: on 27.2 the drag session is never created, so CocoaPerformDrag’s nested CFRunLoop has no exit condition and churns at full CPU forever. CocoaPerformDrag spinning its own nested loop rather than handing the drag to AppKit and awaiting a callback is what turns an OS-side failure into a permanent beachball.
The only mitigation I’ve found is to never let a drag start on an affected OS: return False from DragRow, and set AllowRowReordering = False / AllowRowDragging = False, gated on the macOS version. That obviously costs you the feature, so it’s a stopgap, not a fix.
Questions for the room: 1. Can anyone else on 27.2 confirm? I’m on the RC, 27.2 (26B118). It has been broken since the first 27.2 beta, so the whole beta cycle went by without this being caught. 2. Has anyone got a working drag via declares to beginDraggingSessionWithItems:event:source: on 2025r2.x, passing the ListBox’s own view as the dragging source? That’s the only route I can see to keeping real system drags without a framework change. 3. @Xojo — your IDE is affected on 27.2. I’ve filed with Apple; happy to share the full sample.
I ship a billing application to law firms. When 27.2 goes public my entire install base loses drag, and from what I can tell so does everyone else’s.