Adding Menu Items to Cocoa Application’s Main Menu Programatically

I cannot find a way to add menu items to Cocoa application’s main menu programatically. In Cocoa developer documentation, I find only removing items programmatically.

Eventually, I added menu items in Interface Builder of XCode and control them from code.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s