WebKit: Embedding Safari

by Charles Miller on June 24, 2003

Apple have made the WebKit SDK for embedding Safari's rendering engine available on Apple Developers Connection. (You have to log in, and go to the downloads page. The new version of QTJava for JDK1.4.1 is there too). According to the blurb on the page:

The Web Kit provides a set of classes to display web content in windows, and implements browser features such as following links when clicked by user, managing a back-forward list, and managing a history of pages recently visited. Documentation is included.

I wrote the world's simplest web browser: a window, a text-box for the URL, and JavaBlogs showing in the display area.

Cocoa hacking reminds me just how much I dislike Swing. It took me longer to post this blog entry than it did to write the above “My First WebKit App”. Like so many things Apple, it Just Works. Except... manual memory management. Eugh. I am so spoilt by garbage-collection.

Previously: Stupid Moments in Public Service Advertising

Next: Gratuitous Microsoft Bashing