From: Neil M. <ne...@cs...> - 2004-01-21 16:36:49
|
Thanks for the reply, I have some comments below: On 19 Jan 2004, at 21:51, Jim Ingham wrote: > On Jan 19, 2004, at 12:29 PM, Neil Madden wrote: > >> <snip>... I also noticed that there was a discussion of how/if it >> would be possible to change the name of this menu (and presumably the >> application itself) from "Wish". Did anything come from this? Is it >> possible to change the name of the application at all? > > This has been discussed on the list a couple of times. Search for > Info.plist in the archives for a couple of threads on this. The short > story is that you can't (so far as I can tell) set the Application > Menu names dynamically, they are set from the entries in the > Info.plist in the Wish Shell.app. So to change these, you need to > make a copy of Wish Shell.app, and edit the info.plist to give your > own values to the app. I noticed that there was a discussion of setting the CFBundleTypeRole for Wish Shell.app to "Shell". This is supposed to make the application name take on the name of the script (instead of always being Wish) if I understand Apple's documentation correctly. However, a bit of further searching dug up a message on a python mailing list stating that apparently Apple never implemented the "Shell" role, and are updating the documentation to remove references to it. This seems a shame, as it makes it much harder for scripts to look native. http://mail.python.org/pipermail/pythonmac-sig/2002-March/005290.html is the thread. It also contains some other useful bits of information. Apparently Apple's jar launcher manages to achieve this functionality. I'm not sure whether that's just because Java is tied into the system much more than Tcl/Python etc are, or whether Apple use some obscure API to achieve this. I'll see if I can dig up any more information on the subject, as I didn't see much more information in the archive of this list. > >> >> Also, does anyone have any advice for other things to consider in >> trying to make a Tcl/Tk app more "native"-like under Mac OS X? I'll >> document the .apple menu trick on the wiki "menu" page (where the >> trick for Windows system menu is). Any other undocumented features? I >> noticed there's a ::tk::unsupported::MacWindowStyle command, but I >> have absolutely no idea what it is for, or how/if to use it. > > Note there are some secret tricks, but the apple menu one is not one > of them. It is actually documented in the Tk menu manpage. So it is. Didn't spot it the first time round. > The MacWindowStyle you currently need to read the source for. It is > not that hard, you say: > > ::tk::unsupported::MacWindowStyle style <win> <class> <attributes> > <snip> Thanks for the help. By the way - as this is in the tk::unsupported namespace, I presume that it might go away at some point. Are there any plans to make this more permantently available, as a package or some such? Cheers, Neil. |