Re: Interaction with web javascript & cocoa
Re: Interaction with web javascript & cocoa
- Subject: Re: Interaction with web javascript & cocoa
- From: Benjamin Dobson <email@hidden>
- Date: Tue, 20 Jan 2009 22:12:18 +0000
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 Javascript function 'makeBold()'
to make the selected text within the editor bold. If this is
possible I then want to save the editor generated html to string so
that I can store it within Core Data. I checked out the Apple Webkit
programming guide but it doesn't provide much.
Any help would be greatly appreciated.
Cheers
Alex Mills
www.alexmillsdesign.com
I would assume you just send the web view to a javascript: URL, but I
haven't even looked at the docs on this one.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden