The system-added "Start Dictation" menu item is causing some headaches in my Carbon app, does anyone know how to prevent it from being added?
My app loads the menu bar out of a Carbon nib (using CreateMenuBarFromNib()), but the traditional Menu Manager APIs (CountMenuItems(), etc.) are completely unaware that the “Start Dictation” item exists. The problem comes when the cursor hovers over “Start Dictation” or the separator above it. A kEventMenuTargetItem event is sent, but the event’s MenuItemIndex is greater than the menu’s number of items! (from CountMenuItems()) In addition, calling GetMenuItemAttributes() with that MenuItemIndex returns paramErr (-50). I would really prefer to just remove the “Start Dictation” menu item. The only advice I’ve seen is to set NSDisabledDictationMenuItem to TRUE, but it seems to have no effect. I’m doing this at the top of main() with a call to CFPreferencesSetAppValue(CFSTR("NSDisabledDictationMenuItem"), kCFBooleanTrue, kCFPreferencesCurrentApplication)), it’s successfully changing the plist but the item is still there. Another thing that I”m puzzled about is that the “Emoji & Symbols” menu item does not show up in my Edit menu, just “Start Dictation”. I’m ok with this, but just haven’t seen any information about why one or the other isn’t added. Thank you, Brendan Shanks Senior Software Engineer brend...@dessci.com Design Science, Inc. -- www.dessci.com 140 Pine Avenue, 4th Floor Long Beach, California 90802 USA ~ Makers of MathType, MathFlow, MathPlayer, MathDaisy, Equation Editor ~ _______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (Carbon-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/carbon-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com