Edit menu localisation, default application menu
Edit menu localisation, default application menu
- Subject: Edit menu localisation, default application menu
- From: Aandi Inston <email@hidden>
- Date: Sat, 11 Jul 2015 08:39:54 +0100
It turns out, and I'm sure this will surprise nobody but me, that for the
copy/paste/cut keyboard commands to work in Cocoa my app needs to have a
suitable Edit menu with copy/paste/cut menu items and keyboard equivalents.
My question is about localisation. The app is localised via its own string
files. Clearly I can add Edit/Copy/Cut/Paste to the strings for
translation.
But is there a better way to display a suitable Edit menu and use the
locale standard translation for these names?
Related: I observe that, even if I replace the [application mainMenu], that
the menu which is then displayed has fixed, and localised, entries under
the app name. That the title of the first menu is ignored and the contents
merged with the standard ones. Old news I'm sure, but I can't find where
this behaviour is documented, and what surprises it may have. Sometimes a
"quit and leave Windows" or similar item appears, for instance. Can anyone
point out what I should be reading?
Thanks in advance.
_______________________________________________
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