Post

Replies

Boosts

Views

Activity

Reply to macOS 26: NSTokenField crashes due to NSGenericException caused by too many Update Constraints
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:
1w
Reply to macOS 26: NSTokenField crashes due to NSGenericException caused by too many Update Constraints
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:
Replies
Boosts
Views
Activity
1w