Hi, I ran into a possibly similar issue, and the solution was to have my custom object that I return via tokenField(_:representedObjectForEditing:) implement both isEqual and hash. It seems that macOS 26 relies on these more than previous versions of macOS, and if you return a new object each time, the default implementation will say that they are not equal, resulting in recursive loop. Hope this helps!
Cheers,
Dave
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: