How to remove the "Special Characters..." menu item?
How to remove the "Special Characters..." menu item?
- Subject: How to remove the "Special Characters..." menu item?
- From: H David Goering <email@hidden>
- Date: Mon, 7 Sep 2009 20:54:46 -0500
XCode automatically adds the "Special Characters..." menu item to
applications, but mine doesn't need it, so I'd like to leave it off.
"Mac OS X Developer Release Notes: Cocoa Application Framework (10.5
and Earlier)" contains the following
AppKit now adds "Special Characters..." menu item to the "Edit" menu
if an item with -orderFrontCharacterPalette: action is not found in
the menu. To prevent the behavior, you can set the
NSDisabledCharacterPaletteMenuItem preference setting to YES.
which does not accurately describe behavior under OSX 10.5 and XCode
3.1.
I've made these attempts to suppress the "Special Characters..." menu
item added by AppKit":
1. Set NSDisabledCharacterPaletteMenuItem. I do not find this setting,
or anything relevant, in XCode.
2. Create and hide my own menu item. It's easy enough to create a
functional "Special Characters..." menu item in Interface builder
(create the item and link it to the "orderFrontCharacterPalette:"
received action of the NSApplication instance), but contrary to the
claim of the release note above, this does not prevent AppKit from
adding another.
3. Programmatically remove the item after the application has
launched. The menu's array of items does not include the item added
by AppKit, so NSMenu's methods cannot access it.
What else can I try?
Incidentally, can anyone explain why this particular menu item is
exalted?
Thanks,
David
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden