I have a Cocoa app that uses a WebView to display an HTML interface. How would I go about calling an Objective-C method from a Javascript function within the HTML interface?...
I'm new to cryptography and I'm building some test applications to try and understand the basics of it. I'm not trying to build the algorithms from scratch but I'm trying to make two different AES-256 implementation talk to each other...
I am new to JavaScript, just created a cocoa app with a webView embedded which display the gmail iPhone site. What I want to do here is to schedule a timer method, then in the timer method,emulate a click on a refresh button to fire the on click even...
We are developing a Cocoa app for Mac OSX (10.8) which needs to use a JavaScript library (long story why we must use JavaScript).  In a demo application everything seemed to be just fine, but while incorporating the code in our project, we can call t...
I have a WKWebView to which I send javascript via -[WKWebView evaluateJavaScript:completionHandler:] Periodically, the web view returns the following error:   Error Domain=WKErrorDomain Code=3 "The WKWebView was invalidated" UserInfo={NSLocal...
So basically I'm implementing the typical way to handle JavaScript calls in objc using window.location="myobj:mymethod:myarg:myotherarg", however, I'm wondering if there is a way to apply an array of arguments to a method, similar to...
I'm using a Webview in Cocoa (Mac), and I'm trying to get the correct height of a document. Just doing the normal thing, webview.mainFrame.frameView.documentView.bounds.size.height seems to work fine in all cases, except one that I just found...
I have a Cocoa app containing a WebView. I'm targeting the 10.4 SDK due to the app's installed customer base. (i.e. I cannot require Leopard.)  I have two files: index.html and data.js.  At runtime, in response to user input, I write over the...
I've got an objectiveC class who's methods I can invoke from javascript vai webscriptobject. However, I'd like to call my function from javascript providing a variable number of parameters.  For example,  myclass.myfunction(arg1, arg2, ar...
OK, here's what:   I don't want to write an OSX app in node.js - the app is almost complete and 100% in Objective-C/Cocoa I don't want to bridge Objective-C and node.js I want to be able to execute a js/node.js script, regardless of wheth...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.