From: Jim I. <ji...@ap...> - 2002-02-19 05:13:11
|
Dorothy, This is great! The way that you are supposed to make a "Tcl/Tk" based app on Mac OS X is to put make a copy of the Wish.app package, and call it whatever you want - maybe TkCVS.app. Then make a "Scripts" folder in TkCVS.app/Contents/Resources, and put a startup script in the Scripts folder with the name AppMain.tcl. This will get sourced when the app is double-clicked. Also, the Scripts folder is added to the auto_path, so if you put other tcl library files, or a tclIndex file there, your app will find the other bits it needs from. You can also replace the Wish.icns file with an icon file for your App, if you want it to have a different desktop/Dock icon. If you were being really complete about it you might also want to edit the info.plist, and set things like the version string to appropriate values. Jim > Whee! Tkcvs works (with minor cosmetic issues) with the latest MacOS X > version > of tcl/tk, once I hard-coded the path to the Wish Shell into it. Tkcvs goes > to > a lot of trouble to ask the system about font sizes and such so that it will > look native whether it wakes up and finds itself running under CDE, some funny > Windows theme, or whatever, and that seems to be paying off now (pats self on > back.) TkDiff isn't quite as lucky and has definite problems. > > What mechanism should be used to start TK applications? I tried telling > the .tcl suffix to invoke Wish Shell (you never know until you try), and it > dutifully started Wish but then Wish didn't run tkcvs. I'm sadly ignorant > about > Macintosh, being an old unix person, so the whole double-click thing is kind > of > a mystery to me. Should I be making one of those .app packages myself? How > would it know where to find wish? > > Thanks for getting Aqua TK running. I'm much happier about having an > additional > platform to support than I should be :-) > > Dorothy > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Dorothy Robinson > http://www.twobarleycorns.net > > > _______________________________________________ > Tcl-mac mailing list > Tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac > -- ++=++=++=++=++=++=++=++=++=++=++=++=++=++=++=++=++=++=++= Jim Ingham ji...@ap... Developer Tools - gdb |