[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Large menus

The data structure for menus (in the Toolbox, not MCL) uses a long (32 bits)
to store enabled/disabled states. There is one bit for the whole menu, and 31
bits for menu items. Thus you cannot control more than 31 items, except by
disabling the whole menu.
My understanding is that Apple has no plans to "fix" that. Long menus are user-
unfriendly. It is usually a good idea to keep the number of items below a dozen.
If you have a potentially very long list of choices (e.g. fonts), a good solu-
tion is to show a few common cases in the menu, and have an item "Others..."
that opens a dialog with a scrolling list.