Double Help menus
-
Hi All,
I'm experiencing a problem where my application gets two help menus for
*some* users when running on Tiger systems. This problem does not happen on
Panther.
The first Help menu is the one coming from my mainMenu.nib file. The second
seems to be synthesized by the system and has only one item - 'Script
Debugger Help'. I've found a few references to this problem in my searches,
but nothing I've found explains how to resolve the problem.
I've also not been able to determine why only some of my 10.4 testers are
experiencing this problem.
My plist contains these entries:
<key>CFBundleHelpBookFolder</key>
<string>rosiehelpnew</string>
<key>CFBundleHelpBookName</key>
<string>Script Debugger 4 Help</string>
rosiehelpnew matches the name of my Help book's folder.
Does anyone have any suggestions for resolving this?
Cheers
-Mark
------------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 Script Debugger 3.0 - AppleScript IDE
WEB: http://www.latenightsw.com/ FaceSpan 4.2 - AppleScript RAD
Affrus 1.0 - Perl Debugging -
Do you programmatically open any windows prior to
NSApplicationDidFinishLaunching being sent?
On Dec 13, 2005, at 10:22 AM, Mark Alldritt wrote:> Hi All,
>
> I'm experiencing a problem where my application gets two help menus
> for
> *some* users when running on Tiger systems. This problem does not
> happen on
> Panther.
>
> The first Help menu is the one coming from my mainMenu.nib file.
> The second
> seems to be synthesized by the system and has only one item - 'Script
> Debugger Help'. I've found a few references to this problem in my
> searches,
> but nothing I've found explains how to resolve the problem.
>
> I've also not been able to determine why only some of my 10.4
> testers are
> experiencing this problem.
>
> My plist contains these entries:
>
> <key>CFBundleHelpBookFolder</key>
> <string>rosiehelpnew</string>
> <key>CFBundleHelpBookName</key>
> <string>Script Debugger 4 Help</string>
>
> rosiehelpnew matches the name of my Help book's folder.
>
> Does anyone have any suggestions for resolving this?
>
> Cheers
> -Mark
>
> ----------------------------------------------------------------------
> --
> Mark Alldritt Late Night Software Ltd.
> Phone: 250-380-1725 Script Debugger 3.0 -
> AppleScript IDE
> WEB: http://www.latenightsw.com/ FaceSpan 4.2 - AppleScript RAD
> Affrus 1.0 - Perl Debugging
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<Cocoa-dev...>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<enigma0...>
>
> This email sent to <enigma0...> -
On Dec 13, 2005, at 10:22 AM, Mark Alldritt wrote:> Hi All,
>
> I'm experiencing a problem where my application gets two help menus
> for
> *some* users when running on Tiger systems. This problem does not
> happen on
> Panther.
>
> The first Help menu is the one coming from my mainMenu.nib file.
> The second
> seems to be synthesized by the system and has only one item - 'Script
> Debugger Help'. I've found a few references to this problem in my
> searches,
> but nothing I've found explains how to resolve the problem.
>
> I've also not been able to determine why only some of my 10.4
> testers are
> experiencing this problem.
>
> My plist contains these entries:
>
> <key>CFBundleHelpBookFolder</key>
> <string>rosiehelpnew</string>
> <key>CFBundleHelpBookName</key>
> <string>Script Debugger 4 Help</string>
>
> rosiehelpnew matches the name of my Help book's folder.
>
> Does anyone have any suggestions for resolving this?
This happens when something calls into the Carbon Menu Manager before
NSApplication gets a chance to tell the Menu Manager that this is a
Cocoa app, and that therefore the Menu Manager shouldn't create the
Help menu automatically.
This probably has been noticed in QuickTime Player when the DivX
codec is installed, for example, because the DivX coded called
HiliteMenu from its component initializer, which was run (via
EnterMovies) before QTPlayer called [NSApplication run].
It's possible that your app is hitting the same problem with DivX, if
the problem is only seen on certain machines. The general solution is
to avoid calling into the Menu Manager, or calling anything that
could call into the Menu Manager, before starting up NSApplication.
-eric -
Hi,> This probably has been noticed in QuickTime Player when the DivX
> codec is installed, for example, because the DivX coded called
> HiliteMenu from its component initializer, which was run (via
> EnterMovies) before QTPlayer called [NSApplication run].
>
> It's possible that your app is hitting the same problem with DivX, if
> the problem is only seen on certain machines. The general solution is
> to avoid calling into the Menu Manager, or calling anything that
> could call into the Menu Manager, before starting up NSApplication.
This is the problem - thanks. My application, while not a QuickTime app, is
heavily dependant on the Component manager (because of the OSA calls it
makes) and moving the DivX component out of the /Library/QuickTime folder
corrects the problem.
I don't suppose there is anything I can to to work around this in Cocoa is
there?
Cheers
-Mark
------------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 Script Debugger 3.0 - AppleScript IDE
WEB: http://www.latenightsw.com/ FaceSpan 4.2 - AppleScript RAD
Affrus 1.0 - Perl Debugging -
On 13 Dec 05, at 11:09, Mark Alldritt wrote:> Hi,
>
>> This probably has been noticed in QuickTime Player when the DivX
>> codec is installed, for example, because the DivX coded called
>> HiliteMenu from its component initializer, which was run (via
>> EnterMovies) before QTPlayer called [NSApplication run].
>>
>> It's possible that your app is hitting the same problem with DivX, if
>> the problem is only seen on certain machines. The general solution is
>> to avoid calling into the Menu Manager, or calling anything that
>> could call into the Menu Manager, before starting up NSApplication.
>
> This is the problem - thanks. My application, while not a
> QuickTime app, is
> heavily dependant on the Component manager (because of the OSA
> calls it
> makes) and moving the DivX component out of the /Library/QuickTime
> folder
> corrects the problem.
>
> I don't suppose there is anything I can to to work around this in
> Cocoa is
> there?
No, but it isn't your problem to work around. It's a bug in the DivX
component
which I believe has been fixed in newer versions. -
On Dec 13, 2005, at 11:09 AM, Mark Alldritt wrote:> I don't suppose there is anything I can to to work around this in
> Cocoa is there?
Not that I know of, other than moving your first Component Manager
calls to a point after you call [NSApplication run].
-eric


