Tk Source Code

View Ticket
Login
Ticket UUID: 2935309
Title: No multi-column menus in Tk Cocoa
Type: Bug Version: obsolete: 8.6b1.1
Submitter: tom_goddard Created on: 2010-01-19 23:30:03
Subsystem: 11. Aqua Menus Assigned To: das
Priority: 3 Low Severity:
Status: Closed Last Modified: 2026-10-22 17:22:35
Resolution: Wont Fix Closed By: serhiy.storchaka
    Closed on: 2026-10-08 12:20:15
Description:
Multi-column menus are not implemented in Tk Cocoa 8.6, Jan 8, 2010 cvs source code.
The following tcl-mac mailing list message discusses this.

http://sourceforge.net/mailarchive/message.php?msg_id=4B04C78B.4030203%40cgl.ucsf.edu
User Comments: serhiy.storchaka added on 2026-10-08 12:20:15:

Menus on macOS are native NSMenus, which have no multi-column layout. This is now documented in the menu manual page: -columnbreak is ignored on Aqua/macOS, where menus are always a single column.


tom_goddard added on 2010-01-20 06:46:36:
We use multi-column menus with per-entry background colors (for choosing colors), and tear-off menu entries in our molecular visualization program UCSF Chimera.  Currently these are all supported in Mac Carbon Tk with useCustomMDEF, but none are supported in Cocoa Tk.  We are moving to Cocoa Tk because many of our users need 64-bit binaries for handling large data sets.

I know these odd menu features are a pain to implement, and I don't expect to see them soon if ever.  My purpose is just to record these problems in the Tk bug database.  (In Mac Carbon Tk I think it took a few years after I reported the menu issues in 2003 for an implementation to come along, for which we were very grateful.)

Our software depends on about 35 third-party libraries running on Windows, Linux and Mac OS, of which Tk is one.  So we of course have many cross-platform compatibility issues to deal with.  These Mac menu problems are too small and too difficult for us to provide the Tk implementation.

das added on 2010-01-20 06:31:54:
same as with 814846, NSMenuItem does not support this directly, so implementing this would need custom menu drawing NSView. Patches welcome...