Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Carbon WebKit

3 views
Skip to first unread message

cperkins

unread,
Feb 6, 2007, 8:22:29 PM2/6/07
to
I'm trying to open up a WebKit view in a Carbon shared library.

I've found a few references, and everything seems like it should be
easy, but I'm making some simple mistakes.

Here is the general "using webkit from carbon" notes from Apple:
http://developer.apple.com/documentation/Carbon/Reference/Web_Kit_C/index.html

And here is a quick sample of how to do so:
http://developer.apple.com/documentation/Cocoa/Conceptual/DisplayWebContent/Tasks/CarbonApps.html

Seems straightforward, but I can't get things to compile. I've got
the Carbon and WebKit frameworks added to my XCode project, my source
file includes "Carbon/Carbon.h", which those first apple docs suggest
should suffice. But my first call to WebInitForCarbon() won't
compile as it is not declared in that scope.

If I add includes for "HIWebView.h" and "CarbonUtils.h" then _those_
files are unfindable.

Generally, frameworks don't give me any hassle, so I'm not sure what
I've done wrong. I'm using XCode 2.4, and I've tried removing and
adding the frameworks a couple of times but I must just be repeating
the same wrong steps or overlooking an important one.

Thanks for any help,

Chris

cperkins

unread,
Feb 6, 2007, 9:01:38 PM2/6/07
to
I'm now closer - XCode needed to add the path to the framework headers
to my project. ( Doesn't XCode do that for you? Maybe I'm
remembering CodeWarrior ).

Now it won't link. I'm getting hundreds of statements like this:

_SEC_IA5StringTemplate referenced from WebKit expected to be defined
in ApplicationServices


What library am I missing?

Let me guess, if I had to add the framework headers manually, then
that probably means that somehow "Add...Existing Frameworks" didn't do
it magic, so maybe I need to add some library manually too. Anyone
know which one or where? Or what user error I am making when adding
the framework?

Chris

0 new messages