• 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: Application Help menu duplicated at runtime
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Application Help menu duplicated at runtime


  • Subject: Re: Application Help menu duplicated at runtime
  • From: Jeremy Dronfield <email@hidden>
  • Date: Tue, 13 Apr 2004 20:42:43 +0100

On 13 Apr 2004, at 7:23 pm, Bill Cheeseman wrote:

on 2004-04-13 11:49 AM, Jeremy Dronfield at email@hidden
wrote:

I've just added Apple Help to my application, registered the help book
appropriately, and got it all working. My problem is that I've now got
*two* Help menus - the one I created in IB, plus another that gets
created spontaneously at runtime. I can't simply delete my own Help
menu, because it's got extra items in it (Acknowledgements, Report a
Bug etc). How can I prevent this extra menu being created?

This has been discussed on the list previously, but I don't recall the
explanation -- check the mamasam archives.

I just ran into the problem last weekend. When I added an NSRunAlertPanel
call in my -awakeFromNib method, I started seeing two Help menus where I had
seen only one before. When I moved the NSRunAlertPanel call to the
-applicationDidFinishLaunching delegate method, after my main app window is
shown, the second Help menu went away.

Not sure why it works this way. It seems like I should be able to present an
alert panel before the main window opens, if I want to.

Thanks, that makes things clearer. As it happens, I do run an alert panel at launch, and I've just confirmed that suppressing it does fix the problem. There was no explanation on mamasam that I could find, but studying the behaviour and reviewing the documentation, I think what's causing it is a bug, like so:

The application menu and the Help menu are generated by the system (because they have to be hooked up to system-wide functions); that's why they appear before the application finishes launching, possibly even before -awakeFromNib is called. For some reason - a bug presumably - interrupting the launch process (like with a modal alert) breaks the system's connection with the Help menu stored in the app bundle, causing the system to generate a fresh, duplicate menu.

So, can anyone confirm that this is bug, and if so, is it already known?

- Jeremy
_______________________________________________
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.


  • Follow-Ups:
    • Re: Application Help menu duplicated at runtime
      • From: Bill Cheeseman <email@hidden>
References: 
 >Re: Application Help menu duplicated at runtime (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: NSStepperCell in a NSTableView with bindings
  • Next by Date: Re: Application Help menu duplicated at runtime
  • Previous by thread: Re: Application Help menu duplicated at runtime
  • Next by thread: Re: Application Help menu duplicated at runtime
  • Index(es):
    • Date
    • Thread