Archives / Search ›

Got Notebook working on Jaguar tonight. There are a few minor issues with the GUI, but for day-to-day use, it looks good. If you're interested in trying it out, read on.

As the readme mentions, Notebook 0.9 is written to work with Tcl/Tk 8.3.4, TclLib 1.3, and BWidgets 1.4.1. If you're not using Windows, the readme doesn't offer much help on obtaining them. The Tcl'ers Wiki is helpful, but the pertinent information is scattered among several pages, none of which are helpfully titled “how to install Tcl/Tk on Mac OS X”.

There are at least two functional versions of Tcl/Tk on Mac OS X. The first is a straight Unix port, which uses Unix packaging conventions and X11 for Tk. Running Notebook with this configuration is pretty straightforward, if you have already installed an X server and Tcl/Tk. I installed XDarwin and Tcl/Tk 8.3.4 from Fink (fink install tcltk). Once TclLib and BWidgets are present (below), wish notebook.tcl starts Notebook. The instructions in README.txt describe how to edit notebook.tcl so it's directly executable if you'd prefer.

The more native version of Tcl/Tk on OS X, developed primarily by Jim Ingham and Ian Reid of Apple, is still experimental. It's built as a couple of Mac OS X frameworks, Tk.framework and Tcl.framework, and includes a packaged Carbon application named Wish Shell which works approximately like the wish tool. The native Aqua/Carbon Tk is very fast, but not entirely finished. This Wiki page contains a list of the bugs you can expect to find in the Aqua implementation of Tk.

It's possible to build Tcl/Tk 8.4a4 for Mac OS X/Carbon from CVS with the included Project Builder project, but I gave up after it broke on the spaces in my hard drive's name, and went looking for a binary version. Vince Darley's Alphatk distribution contains easily installable copies of Tcl.framework, Tk.framework, and Wish Shell.app. Download the Alphatk for OS X disk image here, then move the frameworks to /Library/Frameworks and put Wish Shell somewhere you can find it (perhaps /Applications).

TclLib and BWidget are pure Tcl library extensions; while they don't require compilation, they do need to be installed in the proper places. Tcl has the concept of a script library directory, in which it'll automatically search for installed packages. For the Unix port, this is /path/to/lib/tcl8.3; the OS X port uses /path/to/Frameworks/Tcl.framework/Resources/Scripts. When you're finished, you should have directories named tcllib1.3 and bwidget1.4.1 in this directory.

There are three different methods of installing TclLib that I could see, but only one of installing BWidget. Here's what I did, after unpacking both tarballs.

% cd tcllib-1.3
% ./install.sh /Library/Frameworks/Tcl.framework/Resources/Scripts
Installing tcllib 1.3 to /Library/Frameworks/Tcl.framework/Resources/Scripts
[This installs in the wrong place, .../Scripts/lib.  We will move it back later.]
% cd ../BWidget-1.4.1
% ln -s ../tcllib-1.3/config
% aclocal && autoconf
% ./configure --prefix=/Library/Frameworks/Tcl.framework/Resources/Scripts
checking for a BSD-compatible install... /usr/local/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
% make install
[...]
% cd /Library/Frameworks/Tcl.framework/Resources/Scripts
% ls lib
bwidget1.4.1/  tcllib1.3/
% mv lib/* . 
% rmdir lib

This method also deposits documentation in .../Scripts/doc, and does a few other things which are probably wrong, but it works well enough for my purposes.

Finally, launch Wish Shell, choose Source from the File menu, and select notebook.tcl. It should display approximately as shown above.

From this article on using PDF for presentations. PDF has been my solution for presenting away from my computer, because I still use MORE for my presentations and the likelihood of finding a Mac OS 9 or earlier machine to use is essentially zero.

At the end of the article, there was a link to Notebook, a personal Wiki with a Tk front end. Unlike many Wikis, it doesn't require you write all your page names as InterCaps, a practice I find annoying and confusing.

From there I explored some other Tk Wikis, in particular WiKit, which uses MetaKit as a back-end database, and supports either Tk/local or Web access (but not both simultaneously). MetaKit looks like a nice, cross-language and cross-platform embedded database for small data sets. In the bizarre connections department, Apple's Address Book application for Mac OS X also uses MetaKit.

Alexander's Introduction to nnir.el: multifolder searching (including IMAP support) for Gnus, the Emacs mail/newsreader. Multifolder searching is my largest current beef with Mutt; eventually I need to move all my mail behind an IMAP server, then I can gain some client flexibility and think about moving to Gnus. I've heard good things about Cyrus's performance, even on a slow machine such as a Pentium 75; I may have to abandon Courier for it.

This week is shaping up as the craziest in a long time, however, so moving my mail and exploring Gnus is just one more for my to-do list.

It had to happen… Metallifizer adds, or removes, brushed metal interfaces from OS X applications. APE is out as well, and I'll be moving F-Script Anywhere to it if the SDK licensing terms are reasonable. So far, I'm not having much luck.

14:30 Dr_Qwerty changed the topic of #macdev to: XDoc 1.1 -
          http://www.hzsystems.com/kevin/software/xdoc/ || APE 1.0:
          http://www.haxies.com/ape/
14:32  sabi> so, what's the deal with the SDK?
14:34 + miles [~miles@kidthree.ne.client2.attbi.com] joined #macdev
14:35 @Dr_Qwerty> it exists ;)
14:37  sabi> that's nice...

Apple extends .mac service so people don't get penalized for subscribing before their trial accounts have expired. What took them so long? I can get my father's subscription set up now, and take that note I put on September 28 off the calendar.

‹ Newer Posts  •  Older Posts ›