Because of future localization of my app, I want to use a unique command number for each item of my menus. I intend to use the “tag” field in Interface Builder, which seems to give me what I want, but:
Is it a safe practice?
Are they reserved command numbers into the Frameworks which could interfere with mine?
Ok, seems a cool feature, I’ll certainly use it later, but this is pure interface-wide. What about my code? Should I test the title of the menu item, such as "if theMenuItem’s title as string = “Create a new folder” then…? There must be some NeXTSTEP version of this…
It’s much more convenient to have a constant descriptor for a command called via a menu item and/or via a button, to clarify the code, like:
property cmdCreateNewFolder: 100001