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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to