On Sep 28, 2008, at 4:15 PM, Felipe Monteiro de Carvalho wrote:
Hello, I am having problems setting a menu for my application. I am writting the application in Object Pascal and I am not using nib files, because the point is being able to use this to port cross-platform GUI libraries.
NSMenu needs a minimal nib to properly set up the application menu. You can construct your other menus programmatically however.
I create a NSMenu and set it to both AppleMenu and MainMenu, or just 1 of them, but nothing happens!! I always get just an empty menu. I have read tutorials out there, but according to them this code should work.
The main menu contains some items, and those items have submenus, and the titles of those submenus are what appear in the menu bar. Your main menu items do not have any submenus, which is why you're not seeing anything in the menu bar. If you give the menu item a submenu, you'll see it in the menu bar.
-Peter _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]