Open
Bug 288322
Opened 20 years ago
Updated 2 years ago
Generic impl for Mac's Application menu
Categories
(Core :: Widget: Cocoa, defect, P5)
Tracking
()
NEW
mozilla1.9alpha8
People
(Reporter: jhpedemonte, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [mano:cocoa-retarget])
Coming off of a discussion with Mano on Bug 258277... We need a more generic way to handle menu items that need to be put in the Application Menu. Currently, we have special code in nsMenuBarX.cpp to handle individual items (About, Preferences, Quit, and now 'Check for Update'). Mano suggested handling this mostly in XUL. We create a Mac only menu ("MacApplicationMenu"), and add the items we want, in the order we want them. Then we #ifdef out the items from their normal locations. The code in nsMenuBarX would just need to look for the menu id and generically handle it. New items would be added to the XUL menu, without needing to touch nsMenuBarX again. How does this sound?
Comment 1•20 years ago
|
||
(About, Preferences, Quit should remain special cased.)
Comment 2•20 years ago
|
||
Neil: can we use the <menu> type attribute for that? Also, I think we don't want to show this menu on other platforms.
Comment 3•20 years ago
|
||
is this also for bug 283791 ?
Comment 5•20 years ago
|
||
You don't need a whole <menu> for that, a <commandset> would do.
| Reporter | ||
Comment 6•20 years ago
|
||
I don't know much about <commandset>, but we would need to have access to the menu label, so we can add that text to the application menu. Can that be specified in a <commandset>?
Comment 7•20 years ago
|
||
Yes, we'll probably have something like that: <commandset id="macAppMenu"> <command id="..." oncommand="..." label="..."> ... </commandset>
Updated•19 years ago
|
Assignee: joshmoz → bugs.mano
Whiteboard: [mano:cocoa-retarget]
Updated•19 years ago
|
Priority: -- → P2
Target Milestone: --- → mozilla1.9beta
Updated•18 years ago
|
Assignee: mano → joshmoz
Comment 8•16 years ago
|
||
Would this approach be able to deal with dynamically added items?
Updated•7 years ago
|
Priority: P2 → P5
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•