Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Cocoa application to demonstrate the interaction between Objective-C and JavaScript in a WebView.
branch: master

using windowScriptObjectAvailable delegate so the app gets set every …

…time a page loads in the WebView, this way it works after reloading
latest commit 0cbb1bc541
Ryan Bates authored

README

COCOA WEB APP EXAMPLE

This is an example Cocoa application which displays an HTML page in a WebView. It demonstrates how to communicate between Objective-C and JavaScript through the WebScriptObject. If you have a web app which could benefit from desktop integration, I highly recommend creating a Cocoa app which interacts with it.

To try it out, open the "Cocoa Web App.xcodeproj" file in Xcode and click "Build and Run". See the code in "AppDelegate.m" and "index.html" to see how it works.

	git clone git://github.com/ryanb/cocoa-web-app-example.git
	open cocoa-web-app-example/Cocoa\ Web\ App.xcodeproj
Something went wrong with that request. Please try again.