nappgui_src icon indicating copy to clipboard operation
nappgui_src copied to clipboard

Cannot clear PopUp, popup_clear(..) not working on Mac

Open SamSandq opened this issue 11 months ago • 0 comments

I needed to have one popup button clear and re-populate another popup button, and discovered that the popup_clear(...) does not work on Mac.

Checking the code, it's not implemented. Correct by inserting the following code in ospopup.m : ospopup_elem, at line 180:

    else if (op == ekCTRL_OP_DEL) {
        [((OSXPopUp*)popup) removeItemAtIndex: idx];
    }

This seems to do the trick, but there might be other ramifications as well.

SamSandq avatar Mar 27 '24 15:03 SamSandq