• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Javascript call function Objective-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Javascript call function Objective-C
      • From: Diederik Meijer | Ten Horses <email@hidden>
    • Re: Javascript call function Objective-C
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: The Documentation says "that is a member variable" SOLVED
  • Next by Date: Re: Changing Text Field Color to Custom Color in IB
  • Previous by thread: Re: Why isn't scrollRectToVisible animating?
  • Next by thread: Re: Javascript call function Objective-C
  • Index(es):
    • Date
    • Thread