Re: Main Menu : Beginner's question
Re: Main Menu : Beginner's question
- Subject: Re: Main Menu : Beginner's question
- From: Vince DeMarco <email@hidden>
- Date: Mon, 16 Sep 2002 12:57:54 -0700
On Sunday, September 15, 2002, at 11:58 PM, Al Ameen Shah Ahamed Shah
wrote:
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 ?
You are not doing anything wrong those are always disabled. which is an
IB bug, those radio buttons should be available all of the time (when
appropriate)
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.
_______________________________________________
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.