When dragging objects to a canvas we can force the focus ring to show up when entering in the drop zone and disappear when dragged off. Everything works fine until you decide to make it with files. It just works ONCE. After dropping a file, the canvas.setfocus() or enabling the focus ring if it’s already focused stops drawing the focus ring.
Check the code. I am not expecting OSX to handle the focus, I handled the setfocus() myself, multi-platform.
Works every time for objects, but just one time for files, and then something gets bugged internally to Xojo, and the focus stop to work, even for objects.
[quote=113891:@Rick Araujo]When dragging objects to a canvas we can force the focus ring to show up when entering in the drop zone and disappear when dragged off. Everything works fine until you decide to make it with files. It just works ONCE. After dropping a file, the canvas.setfocus() or enabling the focus ring if it’s already focused stops drawing the focus ring.
You might as well write Carbon apps for that bunch which you’ve already said works fine.
Carbon post 10.7 won’t get any fixes / updates from us or Apple.
And Cocoa for pre-10.7 requires using an older version of Xojo which doesn’t have Cocoa in nearly as good a state as now.