Re: duplicate help menu
Re: duplicate help menu
- Subject: Re: duplicate help menu
- From: Ron Fleckner <email@hidden>
- Date: Mon, 30 Jul 2007 20:02:23 +1000
Date: Sun, 29 Jul 2007 19:45:12 -0700
From: "Oscar Bascara" <email@hidden>
Subject: duplicate help menu
To: email@hidden
In awakeFromNib for a controller object, I'm displaying a modal alert
dialog using NSRunAlertPanel(). During the dialog, there are two menu
in the menu bar, the Application menu and the Help menu, which seems
to get automatically generated. The problem is, the rest of the menus
are populated when the dialog closes, and I end up with two Help
menus. It would be nice to suppress the automatically generated Help
menu at the beginning. Any idea?
Thanks,
Oscar
Hi Oscar.
I'm not sure, but I think that running a modal alert from -
awakeFromNib isn't such a good idea. I think the best place to do
this (if you actually think it's a good thing to start your app with
a modal alert) is in the app delegate method -
applicationDidFinishLaunching:. You'd have to make your controller
object the delegate of NSApplication, which you can do in Interface
Builder.
Hope that helps
Ron
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden