Hmm, this could make for a fun Pd object, so you could control the Pd
icon from Pd.
.hc
Begin forwarded message:
From: Kevin Walzer <[email protected]>
Date: February 17, 2009 9:16:04 PM EST
To: "[email protected] List" <[email protected]
>
Subject: [MACTCL] ANN: tkdock 1.0
Reply-To: [email protected]
User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209)
I'm pleased to announce the release of Tkdock 1.0.
The tkdock package is a small, Cocoa-based Tcl extension that allows a
Tcl/Tk application to change its icon on the OS X Dock while running.
This can be useful for indicating changes in application state, for
instance that the application is executing a long-running process,
connecting to a server, or similar activities.
Using the Tkdock Package
Tkdock is invoked by calling package require tkdock. It implements two
commands:
::tkdock::switchIcon /path/to/icon: This command switches the
application's Dock icon while the application is running, and takes a
path to an image as an argument. Any image format supported on Mac
OS X
should work, but Apple's native "icns" icon format (at 128x128 pixels)
appears to provide the sharpest results.
::tkdock::origIcon: This command restores the original application
icon.
Installing Tkdock
Because it calls into the Mac's native Cocoa frameworks, tkdock is a
binary extension (shipped as a .dylib). The universal binary package
was
built against Tcl/Tk 8.5.3 on Mac OS X 10.5.6 and should run on both
Intel and PPC systems. The source code comes with a makefile if you
want
to build the extension yourself. Tkdock is available under the
standard
Tcl/Tk BSD-style license.
Tkdock can be downloaded at
http://www.codebykevin.com/opensource/oss.html. Many thanks to Daniel
Steffen for his advice.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Tcl-mac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tcl-mac
----------------------------------------------------------------------------
"[T]he greatest purveyor of violence in the world today [is] my own
government." - Martin Luther King, Jr.
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list