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


|