I just discovered that the Wish Shell.app already has a folder for putting tcl extensions in it:
(from http://cvs.sourceforge.net/viewcvs.py/tktoolkit/tk/macosx/README? rev=1.12 )
* the standalone Wish has the directory Wish\ Shell.app/Contents/lib in its auto_path. Thus you can place tcl extensions in this directory (i.e. embed them in the app package) and load them with [package require].
.hc
________________________________________________________________________ ____
¡El pueblo unido jamás será vencido!
Oooooo very handy.
This is just tcl binary extensions though? Or does it include sourcing tcl scripts?
too bad the Drag&Drop stuff is not multiplatform, I would love to see that in there!
B>
Hans-Christoph Steiner wrote:
I just discovered that the Wish Shell.app already has a folder for putting tcl extensions in it:
(from http://cvs.sourceforge.net/viewcvs.py/tktoolkit/tk/macosx/README?rev=1.12 )
- the standalone Wish has the directory Wish\ Shell.app/Contents/lib in its
auto_path. Thus you can place tcl extensions in this directory (i.e. embed them in the app package) and load them with [package require].
.hc
¡El pueblo unido jamás será vencido!
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
On May 24, 2005, at 2:07 PM, B. Bogart wrote:
Oooooo very handy.
This is just tcl binary extensions though? Or does it include sourcing tcl scripts?
too bad the Drag&Drop stuff is not multiplatform, I would love to see that in there!
...it's not going to be that way forever! BLT has dNd capabilities, but so far only the tcl parts are ported fully, but there's definitely an effort to get the rest of it working on osx...same thing with tkzinc, togl, tkdnd, tktreectrl, etc...
l8r, jamie
Things have been pretty slow on the tcl/tk front for a couple years, really just due to the hosting organization crap the how the language had jumped around different companies... almost like the old Amiga story.
Anyhow it really sounds like things are moving with tk and I vote to stick with it for PD.
Thanks for the new info Jamie!
b>
james tittle wrote:
On May 24, 2005, at 2:07 PM, B. Bogart wrote:
Oooooo very handy.
This is just tcl binary extensions though? Or does it include sourcing tcl scripts?
too bad the Drag&Drop stuff is not multiplatform, I would love to see that in there!
...it's not going to be that way forever! BLT has dNd capabilities, but so far only the tcl parts are ported fully, but there's definitely an effort to get the rest of it working on osx...same thing with tkzinc, togl, tkdnd, tktreectrl, etc...
l8r, jamie
Hans-Christoph Steiner wrote:
...
- the standalone Wish has the directory Wish\ Shell.app/Contents/lib
in its auto_path. Thus you can place tcl extensions in this directory (i.e. embed them in the app package) and load them with [package require].
. auto_path is read/write
. tcl searches immediate subdirectories too
So, more cross-platformly perhaps, the sys_searchpath contents might be appended to auto_path. Then, if a gui external or library "example" has its binary in extra, extra/example directory will host its tcl part with a pkgIndex.tcl, declaring "package ifneeded example ..."). The only sys_gui call in the example's setup routine will be for "package require example".
Krzysztof