Cut, Copy, Paste menu magic

Hi all,

Like a few others here I whacked the Edit menu in my app. I later found out pasting into TextFields was not working. Searching I found the post where it stated that the Edit menu with a cut/copy/paste items needs to be active for these to work unless you create your own custom handler.

So I make a simple generic app and tried to drag the Edit menu over. It appears menus are not like other things that can be drug between projects.

So ok, I added an edit menu, and added in Undo, Cut/Copy/Paste select all following the exact settings in the generic app. But interestingly enough they don’t work. They never seem to get enabled even though the auto-enable is set on. Is there some magic that needs to happen that I am missing?

I was able to copy and paste the generic menu over and that allowed the undo,cut,copy,paste etc to work.

Last question: Targeting this app for Mac, Windows, Linux. Mac uses command, Windows and Linux use control. It appears you need to set the spectral key switches to be platform specific in say an if TargetOS = Windows or TargetOS = Linux. Is that how people change the key functionality?

No, the framework should do the work for you. When using the switches in the IDE inspector, keys will get automatically platform translated. When setting a shortcut by code, use the special keywords to have them get platform translated. Also remember to make use of Localized Strings (Constants) and set the platform specific values. This should not require any code.

Twiddling with source files might be the easiest way to move an entire menubar menu, but remember that the default project has localized constants to make the Edit menu platform correct – you’ll need to grab those as well.