NSMenu's submenu hangs when being presented for the first time

Specs: macOS Sonoma 14.3.1

Using NSMenu's submenus with a list of NSMenuItems (with or without custom views) will produce a hang for the first time they are presented. The larger the list, the more time the UI will be frozen before presenting the submenu.

Is there something that can be done to mitigate this behavior?

Post not yet marked as solved Up vote post of LucasFrazao Down vote post of LucasFrazao
201 views