NSPopupButton selection blocking main thread?

Scott_BScott_B AUMember ✭✭

Selecting an item from an NSPopupButton causes a noticeable hitch in frame rate (I have a metal scene running in a window so it is easy to notice). This happens even if I am not subscribing to the Activated Event. I notice the same kind of delay with NSMenuItems being selected, again even if no action is called. Something blocking the main thread perhaps?

I'm not sure where to look at this point, any suggestions would be very welcome!

Best Answer

Answers

  • Scott_BScott_B AUMember ✭✭

    I've put together a simple demo of the issue by making the following changes to the Xamarin macControls sample project. (just replace this file)
    https://gist.github.com/addr010/d141c86347fed31706e305afa7986e9b

    If you go to the menu controls page you can easily see that any change to one of the UI elements causes the display to lock briefly. This is what I am seeing in my app as well.

    Here is a clip of my app running, you can see the pause in display every time I change the popup.

    Should I just be filing a bug at this point?

  • Scott_BScott_B AUMember ✭✭

    Thanks for chasing that Chris, darn. I'll file one but I think making my own control will be the way to go at this point!

Sign In or Register to comment.