📄 readme
字号:
Tcl 8.0.3 for Macintoshby Ray JohnsonScriptics Corporationrjohnson@scriptics.comwith major help fromJim InghamCygnus Solutionsjingham@cygnus.comSCCS: @(#) README 1.30 97/11/20 22:01:161. Introduction---------------This is the README file for the Macintosh version of the Tclscripting language. The file consists of information specificto the Macintosh version of Tcl. For more general informationplease read the README file in the main Tcl directory.2. What's new?--------------The main new feature is the Tcl compilier. You should certainlynotice the speed improvements. Any problems are probablygeneric rather than Mac specific. If you have questions orcomments about the compilier feel free to forward them to theauthor of the compilier: Brian Lewis <btlewis@eng.sun.com>.Several things were fixed/changed since the a1 release so besure to check this out.The largest incompatible change on the Mac is the removal of thefollowing commands: "rm", "rmdir", "mkdir", "mv" and "cp". Thesecommands were never really supported and their functionality issuperceded by the file command.I've also added in a new "AppleScript" command. This was contributedby Jim Ingham who is a new member of the Tcl group. It's very cool.The command isn't actually in the core - you need to do a "packagerequire Tclapplescript" to get access to it. This code is officiallyunsupported and will change in the next release. However, the corefunctionality is there and is stable enough to use. Documentation can be found in "AppleScript.html" in the mac subdirectory.The resource command has also been rewacked. You can now read andwrite any Mac resource. Tcl now has the new (and VERY COOL) binarycommand that will allow you to pack and unpack the resources intouseful Tcl code. We will eventually provide Tcl libraries foraccessing the most common resources.See the main Tcl README for other features new to Tcl 8.0.3. Mac specific features------------------------There are several features or enhancements in Tcl that are unique to the Macintosh version of Tcl. Here is a list of those features andpointers to where you can find more information about the feature.* The "resource" command allows you manipulate Macintosh resources. A complete man page is available for this command.* The Mac version of the "source" command has an option to source from a Macintosh resource. Check the man page from the source command for details.* The only command NOT available on the Mac is the exec command. However, we include a Mac only package called Tclapplescript that provides access to Mac's AppleScript system. This command is still under design & construction. Documentatin can be found in the mac subdirectory in a file called "AppleScript.html".* The env variable on the Macintosh works rather differently than on Windows or UNIX platforms. Check out the tclvars man page for details.* The command "file volumes" returns the available volumes on your Macintosh. Check out the file command for details.* The command "file attributes" has the Mac specific options of -creator and -type which allow you to query and set the Macintosh creator and type codes for Mac files. See file man page for details.* We have added a template for creating a Background-only Tcl application. So you can use Tcl as a faceless server process. For more details, see the file background.doc. If you are writing cross platform code but would still like to usesome of these Mac specific commands, please remember to use thetcl_platform variable to special case your code.4. The Distribution-------------------Macintosh Tcl is distributed in three different forms. This should make it easier to only download what you need. The packages are as follows:mactk8.0.3.sea.hqx This distribution is a "binary" only release. It contains an installer program that will install a 68k, PowerPC, or Fat version of the "Tcl Shell" and "Wish" applications. In addition, it installs the Tcl & Tk libraries in the Extensions folder inside your System Folder.mactcltk-full-8.0.3.sea.hqx This release contains the full release of Tcl and Tk for the Macintosh plus the More Files packages which Macintosh Tcl and Tk rely on.mactcl-source-8.0.3.sea.hqx This release contains the complete source for Tcl 8.0. In addition, Metrowerks CodeWarrior libraries and project files are included. However, you must already have the More Files package to compile this code.5. Documentation----------------The "html" subdirectory contains reference documentation inin the HTML format. You may also find these pages at: http://www.scriptics.com/man/tcl8.0/contents.htmlOther documentation and sample Tcl scripts can be found atthe Tcl archive site: ftp://ftp.neosoft.com/tcl/and the Tcl resource center: http://www.scriptics.com/resource/The internet news group comp.lang.tcl is also a valuablesource of information about Tcl. A mailing list is alsoavailable (see below).6. Compiling Tcl----------------In order to compile Macintosh Tcl you must have the following items: CodeWarrior Pro 2 or 3 Mac Tcl 8.0 (source) More Files 1.4.3There are two sets of project files included with the package. The oneswe use for the release are for CodeWarrior Pro 3, and are not compatiblewith CodeWarrior Gold release 11 and earlier. We have included the filesfor earlier versions of CodeWarrior in the folder tcl8.0:mac:CW11 Projects,but they are unsupported, and a little out of date.As of Tcl8.0p2, the code will also build under CW Pro 2. The onlychange that needs to be made is that float.mac.c should be replaced byfloat.c in the MacTcl MSL project file.However, there seems to be a bug in the CFM68K Linker in CW Pro 2,which renders the CFM68K Version under CW Pro 2 very unstable. I amworking with MetroWerks to resolve this issue. The PPC version isfine, as is the Traditional 68K Shell. But if you need to use theCFM68K, then you must stay with CW Pro 1 for now.The project files included with the Mac Tcl source should work fine. The only thing you may need to update are the access paths.Unfortunantly, it's somewhat common for the project files to becomeslightly corrupted. The most common problem is that the "Prefix file"found in the "C/C++ Preference" panel is incorrect. This should beset to MW_TclHeaderPPC, MW_TclHeader68K or MW_TclHeaderCFM68K.To build the fat version of TclShell, open the project file "TclShells.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -