Main Menu : Beginner's question
Main Menu : Beginner's question
- Subject: Main Menu : Beginner's question
- From: "Al Ameen Shah Ahamed Shah" <email@hidden>
- Date: Mon, 16 Sep 2002 12:28:41 +0530
Hi all,
This is regarding the creation of MainMenu, automatically by Interface
Builder.
While just playing around with Cocoa Applications and project Builder on
OS X 10.1.3,
I deleted the MainMenu created by Interface Builder(for no particular
reason)
and created a new NSMenu. In the properties:Attributes window of the new
NSMenu
the radio buttons for Special menus were found to be greyed out. So i
tried to make
this NSMenu my Application's main menu using [NSApp setMainMenu]
But nothing is found to happen. No menu at all for my app.
What am i doing wrong here ? I want to create an NSMenu and set it as my
main menu. Is there any obligation that i should use only the main menu
that is
created by IB ?
Also in the documentation for [NSApplication setAppleMenu] it is said "this
method should be called at startup. Otherwise current menu may not change."
What does startup mean here ? Does it mean i should call setAppleMenu inside
[NSApplication applicationWillFinishLaunching] ?
thanks in advance,
ameen.
**************************Disclaimer************************************
Information contained in this E-MAIL being proprietary to Wipro Limited is
'privileged' and 'confidential' and intended for use only by the individual
or entity to which it is addressed. You are notified that any use, copying
or dissemination of the information contained in the E-MAIL in any manner
whatsoever is strictly prohibited.
***************************************************************************
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.