I'm pleased to announce three new open-source Tk-Cocoa integration
packages for Mac OS X.
Fullscreen: This package adds native a "fullscreen" button to Tk windows
on Mac OS X 10.7 and later. The package adds the fullscreen button that,
when pressed, will smoothly animate the window to fullscreen status. The
window can be restored to its previous state by clicking the upper
right-hand part of the screen and locating the button in the menubar.
This package has no relationship to the standard Tk command "wm
attributes $w -fullscreen 1," which also implements a fullscreen window
and tracks its state internally through Tk. Under OS X, the "wm
attributes" command uses different API's and its state can be tracked
and configured via Tk. The "::fullscreen::fullscreen" only adds the
fullscreen button to the window, and does not track the window's state;
setting the window to fullscreen state is triggered by the user. The
benefit of this command is that it provides better integration with
modern Mac API's.
TclGrowl: This package implements native support for the Growl desktop
notification system on OS X. It provides Tcl support via a SWIG wrapper
for the gntp-send library, which implements Growl's custom network protocol.
TkWebView: This package adds a native WebKit display in Tk apps on OS X,
using the same rendering engine that powers Safari. It is designed for
display of local HTML files. Links to remote sites (i.e., those
beginning with http) will launch the user's default browser. TkWebView
does not display remote URL's; this is not a technical constraint but
rather a design decision, to encourage a separation between local
display of HTML content and an external browser. TkWebView also does not
provide direct access to the HTML content, browsing history, etc. from
Tk; it delegates all management of browsing history and HTML content to
WebKit. HTML navigation can be built into the HTML pages themselves via
JavaScript, href links, and so on.
For more details on these packages, see
http://opensource.codebykevin.com/native.html, and for discussion of
their development, see
http://www.codebykevin.com/blosxom.cgi/2013/05/17#three-new-libraries-for-lion.
Enjoy,
Kevin
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com
|