Version: 1.1

Posted: 2007-06-06

Build Requirements: Xcode 2.4.1

Runtime Requirements: Mac OS X 10.4

View Source Code:

Download Sample (“WebKitPluginWithJavaScript.zip”, 62.5K)
Download Sample (“WebKitPluginWithJavaScript.dmg”, 111.9K)



Description

This sample takes you through all of the basic steps involved in creating a new Cocoa WebKit plug-in that provides JavaScript calling between the plug-in's code and the web page containing the plug-in.

This sample is based on the WebKitPluginStarter sample and picks up where that sample left off to show how to add JavaScript support to a WebKit plug-in. After reviewing this sample, you will want to check out the WebKitPluginWithSimpleGUI sample to learn how you can build your plug-in's GUI in Interface Builder and load it from a .nib file.

Document Revision History

Date Notes
2007-06-06Updated SpeedometerView sources to new NSString to NSBezierPath method.
2007-06-04Shows how to call JavaScript from a WebKit plug-in and vice versa.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.