Changing App Menu items titles

AdmirMuricAdmirMuric USMember

Hello in my mac program I have the app menu and inside it I have items such as "About Program". How can I change the title of said items in runtime?

I have found out that they have the type "NSMenuItem".

Answers

  • DavidLilleyDavidLilley USMember ✭✭✭

    If you have used interface builder to create menu, then you need to add a outlet referencing the NSMenuItem,

    So in runtime you can change the title

    MenuItemAbout.Title = "SomeAboutTitle";

  • AdmirMuricAdmirMuric USMember

    Hey, that's what I did however it is not able to change it.

Sign In or Register to comment.