I have an NSPopuButton, and the first time I open it, it's slow, because it draws a lot of things. The second time and each time after that, it's very fast.
What can I do so the menu is prerendered, so it opens fast even the first time?
So far, I've tried creating the menu in applicationWillLaunch, and after creating it, I call popupMenuPositioningItem:atLocation:inView:.
This works just fine, but the problem is that it displays the menu on the screen. I tried creating an offscreen window and view, and opening the menu there, but it always gets drawn inside the screen.
Is there a way to prerender the menu, or display it but force it offscreen?
thanks.