Download Latest Version tclgestalt1.1.tar.gz (114.2 kB)
Email in envelope

Get an email when there's a new version of TclGestalt

Home / 1.1
Name Modified Size InfoDownloads / Week
Parent folder
README 2012-03-28 1.8 kB
tclgestalt1.1.tar.gz 2012-03-28 114.2 kB
Totals: 2 Items   116.0 kB 0
TclGestalt is a Tcl extension wrapping around the Mac OS Gestalt() 
function.

Compiling TclGestalt
====================

Download the latest package from the Files release area of the SourceForge 
project:
	https://sourceforge.net/projects/tclgestalt/files

or if you want the latest snapshot of the SUbversion repository, execute 
the following command on a terminal window:
	svn co https://tclgestalt.svn.sourceforge.net/svnroot/tclgestalt tclgestalt


Go to the directory containing the source code and execute the following 
commands:
	./configure
	make
	make install


Using TclGestalt
================

From a Tcl script, load the extension like this:
	package require gestalt

This provides a new Tcl command named [gestalt]. The syntax is:
	gestalt selector
where the 'selector' argument is a four_chars value. Most of the possible
values are defined in the Gestalt.h header file located in the CarbonCore
framework.
See:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/Gestalt.h

Examples:
	gestalt sysv
	gestalt "kbd "
	gestalt "fs  "

The returned value is of type long. Depending on the selector, it has to be
interpreted sometimes as an hexadecimal value, sometimes as a binary code
digit etc. The Tcl command returns the result as an integer value. It is up
to the user to give it the right interpretation. 


License
=======

TclGestalt is a free software distributed with a BSD license like the Tcl 
language itself. See the file LICENSE.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED.


----
Last modification: 2012-03-28 13:24:09
Source: README, updated 2012-03-28