Haven't tried this solution for removing menu items, but could be interesting to give a try:
https://stackoverflow.com/a/77351807
My current implementation does not actually replace the menu items, it just changes the function they execute. So I could make the 'Close' menu item do something completely different like opening a new window or something weird.
Basically, I specify which menu item I would like to manipulate, and then call the function that should be executed. #Swift #AppKit #macOS
nostr:nevent1qvzqqqqqqypzp8yls8khjhc0tma9tzfjsfrg0kz0cln2fnaxmdwk6w6sljmlltkzqy28wumn8ghj7mn0wd68ytn00p68ytnyv4mqzxrhwden5te0wfjkccte9eekummjwsh8xmmrd9skcqg5waehxw309aex2mrp0yhxgctdw4eju6t0qyt8wumn8ghj7un9d3shjtnwdaehgu3wvfskueqqyzvpy0lj5zc0mnchw2gu4wg4nqv42sknl9h4tz8gny2zf68x5frgymkcu8d
Login to reply