Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System is adding unwanted items to my customized contextual menu in my app

I have customized the contextual menu for my Cocoa application such that only certain items are visible. In spite of my customization, I found that the system adds a menu item -- "Add to iTunes as a spoken track".

I tried removing this item from the menu but somehow, I am unable to get the control. Is there a way this item can be removed, or do I have to write an AppleScript to disable the iTunes option under Keyboard Shortcuts? I hate doing that since I will then have to restore it for the user.

like image 671
Prashant Avatar asked Nov 01 '11 22:11

Prashant


People also ask

What are contextual menu options?

A context menu is a pop-up menu that provides shortcuts for actions the software developer anticipates the user might want to take. In a Windows environment, the context menu is accessed with a right mouse click.

What is context menu in iOS?

In iOS and iPadOS, a context menu can display a preview of the current content near the list of commands. People can choose a command in the menu or — in some cases — they can tap the preview to open it or drag it to another area. Prefer a graphical preview that clarifies the target of a context menu's commands.

What is context menu in Macos?

Control-click on a Mac is similar to right-click on a Windows computer — it's how you open shortcut (or contextual) menus on a Mac. Control-click: Press and hold the Control key while you click an item. For example, Control-click an icon, a window, the toolbar, the desktop or another item.


1 Answers

You can control the contents of these menus (system-wide) by using Preferences.

See System Preferences > Keyboard > Keyboard Shortcuts > Services > Text

like image 192
Bwooce Avatar answered Oct 20 '22 19:10

Bwooce