Re: Interaction with web javascript & cocoa

2009-01-20 Thread Joseph Crawford
what i did is created the outlet to my webview, made the webview load an html file that contains all my JS functions and then call it like so. NSString *command = [[NSString alloc] initWithFormat:@"addMarkerAtPoint(%f, %f, 13, \"%...@\");", [location latitude], [location longitude], [locat

Re: Interaction with web javascript & cocoa

2009-01-20 Thread Markus Spoettl
On Jan 20, 2009, at 11:06 PM, Alex Mills wrote: I have built a Javascript WYSIWYG editor. I want to build a WebKit based cocoa app with buttons that can call a function from the editor loaded in webkit. For example I want to have a button within the Cocoa interface that calls the Javascript

Re: Interaction with web javascript & cocoa

2009-01-20 Thread Benjamin Dobson
On 20 Jan 2009, at 22:06:52, Alex Mills wrote: Hey, I have built a Javascript WYSIWYG editor. I want to build a WebKit based cocoa app with buttons that can call a function from the editor loaded in webkit. For example I want to have a button within the Cocoa interface that calls the Jav

Interaction with web javascript & cocoa

2009-01-20 Thread Alex Mills
Hey, I have built a Javascript WYSIWYG editor. I want to build a WebKit based cocoa app with buttons that can call a function from the editor loaded in webkit. For example I want to have a button within the Cocoa interface that calls the Javascript function 'makeBold()' to make the selected te