Javascript call function Objective-C
Javascript call function Objective-C
- Subject: Javascript call function Objective-C
- From: Tibira Botto <email@hidden>
- Date: Thu, 04 Jul 2013 10:20:33 -0300
it is possible to access a javascript function in Objective-C?
didactic example:
- (NSString *) getName
{
return @ "Test"
}
in javascript
function writeReturn(text)
{
document.write (text)
}
onclick = writeReturn (getName () function that in Objective-C).
I'm using Webview and development for OSX.
thank you
_______________________________________________
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