Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer > Re: Using Objec...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 6 Topic 962 of 1040
Post > Topic >>

Re: Using Objective-C From JavaScript

by Simon Slavin <slavins.delete.these.four.words@[EMAIL PROTECTED] Aug 28, 2007 at 02:33 AM

On 27/08/2007, Simon Slavin wrote in
message
<fav5ca$r3g$1$8300dec7@[EMAIL PROTECTED]
>:
 
> I'm following the
instructions on
> this page
> 
>
http://developer.apple.com/do***entation/AppleApplications/Conceptual/Saf
>
 ar iJSProgTopics/index.html
> 
> and it gets into a a nice example
involving BasicAddressBook and talks
> about editing a .m file.  But what
kind of project is this ?  Should I
> create it in Xcode by using 'Cocoa
Application' or 'Cocoa Bundle' or is
> it a library or what ?  It's not an
application, in that 'main' does
> nothing and it has no interface, so I
guess the application options are
> wrong.
> 
> I assume I should link to
WebKit.framework.  But the page mentions
> WebScriptObject.h .  Should I
be im****ting that somewhere, or is it part
> of Cocoa or WebKit.framework
or something else that means it will be
> implicitly incor****ated ?

Tom
asked:

> Are you looking to write a plugin that would work in Safari? 
That 
> sounds like it might be what you mean but it's not clear.

Yes, that's it.  Safari and anything else that uses WebKit.  It doesn't
need to have any free-standing abilities at all, I'm just providing an
interface between JavaScript and something I can't do in JavaScript.  And
it doesn't need to be a fully-fledged View handler because it doesn't draw
anything on the web page, it just accepts text data from JavaScript,
processes it, and returns the results as text.

Simon.
-- 
http://www.hearsay.demon.co.uk
 




 6 Posts in Topic:
Using Objective-C From JavaScript
Simon Slavin <slavins.  2007-08-27 19:32:32 
Re: Using Objective-C From JavaScript
Tom Harrington <tph@[E  2007-08-27 14:31:52 
Re: Using Objective-C From JavaScript
Simon Slavin <slavins.  2007-08-28 02:33:42 
Re: Using Objective-C From JavaScript
Tom Harrington <tph@[E  2007-08-27 21:15:39 
Re: Using Objective-C From JavaScript
Simon Slavin <slavins.  2007-08-29 22:25:40 
Re: Using Objective-C From JavaScript
David Phillip Oster <o  2007-08-28 02:53:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 7:32:42 CST 2008.