Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SamSandq opened this issue Mar 27, 2024 · 0 comments
Open

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

SamSandq opened this issue Mar 27, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@SamSandq
Copy link

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.

@frang75 frang75 self-assigned this Mar 27, 2024
@frang75 frang75 added the bug Something isn't working label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants