• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: duplicate help menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: duplicate help menu
      • From: "Oscar Bascara" <email@hidden>
  • Prev by Date: Re: Gradient NSOutlineView row - Text color of it's NSTextFieldCell
  • Next by Date: Re: Changing the app language
  • Previous by thread: duplicate help menu
  • Next by thread: Re: duplicate help menu
  • Index(es):
    • Date
    • Thread