Clay Bridges
Clay Bridges

Reputation: 11880

Call Objective-C from Safari javascript?

On OSX (say Yosemite), I'd like a way to call Objective-C from Safari/Javascript. Is there a way to do this?


Not what I'm looking for:

Upvotes: 1

Views: 209

Answers (2)

Theodore Norvell
Theodore Norvell

Reputation: 16241

I came across this reference. So the answer appears to be: yes if you are writing a plugin.

https://developer.apple.com/library/archive/documentation/AppleApplications/Conceptual/SafariJSProgTopics/ObjCFromJavaScript.html

Upvotes: 2

Michael Fry
Michael Fry

Reputation: 1090

No. There is no way to do this. The only interface to the client machine is the API which the browser provides.

Upvotes: 1

Related Questions