|
April 15, 2003
InDesign...
So I am sitting here today trying to make Menu Master work with InDesign (as mentioned before). The app from the inside is amazing. Or at least the way it works. I haven't touched anything else, but the way it treats menus in the menubar is worth mentioning. First of all, when you pull down any menu in the menubar, it creates it from scratch by first removing all old menu items and then calling InsertMenuItemText() repeatedly for each item. Fine. It also passes a wrong item index to the call (afterItem parameter), being always off by 1 past the actual menu bounds. Still fine, toolbox is trained to catch these quirks. Now, when you choose any of the submenus, it actually creates a new menu with a new menu ID and fills it up. I don't know what to do about this since Menu Master stores the shortcut preferences based on the item's menu ID, and since this is completely dynamic, it's hard to make it work as is. And last thing... Once you actually assign a shortcut, InDesign will completely ignore it, consulting its internal table of shortcuts, without even attempting to use the required Carbon call to check for the menu shortcuts, making the Menu Master shortcuts you've set totally useless. Nice, mm? I will continue looking for solutions, but if I will fail, that's another application to the Menu Master exclude list. Sigh. And now let's end this little rant and declare a message to all the programmers out there: Please, please, please, do not try to re-invent the wheel and use the system supplied calls for performing standard things. Trackback Pings: TrackBack URL for this entry: Related:
Comments
I've worked inside InDesign so I can comment. First, there is a system-provided call on the Mac for shortcuts, but there is a different one (I'm sure) for Windows which probably works in its own way. The InDesign developers needed a cross-platform implementation, so they wrote their own. Menu shortcut keys aren't just menu shortcut keys. They are actually optional key shortcuts for any "action". Menu items are "actions", as are tool selections, and many other things. I just want to defend InDesign. The way it does things isn't totally insane. Just a bit crazy. InDesign has a shortcut key editor that you should be using anyway for changing shortcut keys. BTW, I thought that any value > than the number of items in the menu was valid for "at the end" for InsertMenuItemText(). See http://lists.apple.com/archives/carbon-development/2003/Feb/22/alwaysinsertingmenuitems.001.txt for reference. Posted by: Avi on April 15, 2003 3:06 PMThat reminds me of 4D 3.0. It patched almost the entire event manager to do its multi-tasking instead of using the thread manager. It even provided API calls to remove and reinstall its patches, which I had to call before and after every event manager call I made from an external. Mmm... as mentioned above, Indesign -> Edit -> Keyboard Shortcuts... allows the user to change them already. Not as elegantly as Menu Master, of course, but there you go. Adobe even provides a couple of pre-configured sets for people already used to Quark or Photoshop, etc. It's not the end of the world if you just add this one to your Exclude App... list. You can always point out in your setup that InDesign already has its own shortcuts editor (as does MS Word, FWIW). Posted by: Fred on April 15, 2003 7:16 PMThe really fun thing about Adobe's X products is that they all use some weird shortcut key approach that sometimes can totally get broken. It has happened on my work machine more than once. Evidently, based on a troubleshooting hint on Adobe's website, if some key command thing doesn't load properly during system startup command, option, etc key commands will not function. You have to restart for them to function again. Adobe points the finger at the OS, but it is odd to me that their programs are the only ones that seem to be affected. Posted by: Rusty Mitchell on April 16, 2003 9:14 AMI just want to respond to Fred's comment. I use InDesign and have set up the shortcut keys using its built-in editor. It's flaky at best. If you quit the app, go into the application's folder, open up the plugins folder, add or remove a plugin, then start up InDesign again, it will invariably 'forget' your palette locations, shortcuts, open recent items list, and more. Now you're back into the keyboard shortcuts reassigning keys all over again and setting up your workspace to your liking. I was really hoping that menu master would be the answer to this odd behavior, and I still hope it will be. I use InDesign exclusively, so I know about all of its odd little quirks. Have even reinstalled InDesign a couple of times just to see if that would help. It didn't. So please Slava, keep pluggin away. I'm depending on you! Thanks. Posted by: Tom on April 18, 2003 12:13 PMKeep comments on topic. If a comment is unrelated to this post, it may be removed or moderated. |

