Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > What is the webcore interface?

What is the webcore interface?
Thread Tools
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Mar 7, 2003, 07:10 PM
 
The Apple dev pages say that webcore presents an ObjC interface. Is it possible to interact with it through C++ rather than ObjC? Can you interface directly with the KHTML rendering engine using C++ or do you have to go through the external webcore interface using ObjC?

kman
     
Senior User
Join Date: Dec 2001
Status: Offline
Reply With Quote
Mar 7, 2003, 08:15 PM
 
WebCore is not yet useable by third party developers. The source code has only been released because of LGPL requirements. When the final version of Safari is released, the Safari SDK will be released and (at least somewhat) documented by Apple.
"Think Different. Like The Rest Of Us."

iBook G4/1.2GHz | 1.25GB | 60GB | Mac OS X 10.4.2
Athlon XP 2500+/1.83GHz | 1GB PC3200 | 120GB | Windows XP
     
kman42  (op)
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Mar 7, 2003, 08:29 PM
 
Originally posted by macmike42:
WebCore is not yet useable by third party developers. The source code has only been released because of LGPL requirements. When the final version of Safari is released, the Safari SDK will be released and (at least somewhat) documented by Apple.
Can you elaborate on this? Will the Safari SDK be separate from WebCore? I'm assuming the Safari SDK will be for extending Safari and WebCore/JavaCore will be the APIs to the rendering engine.

kman
     
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Mar 7, 2003, 09:24 PM
 
WebKit (not WebCore, that's a lower level framework) is a part of the Safari SDK. You could, indeed, interact directly with KHTML, duplicating all of Apple's work in the creation of WebCore. The main problem is that you'd still need kwq to eliminate the qt dependence, and kwq is Cocoa.
[vash:~] banana% killall killall
Terminated
     
Senior User
Join Date: Dec 2001
Status: Offline
Reply With Quote
Mar 7, 2003, 09:57 PM
 
Originally posted by kman42:
Can you elaborate on this? Will the Safari SDK be separate from WebCore? I'm assuming the Safari SDK will be for extending Safari and WebCore/JavaCore will be the APIs to the rendering engine.

kman
Basically what Gul Banana (have I ever mentioned how much I love that nick?) said. The Safari SDK will include WebCore, JavaScriptCore, WebKit, and some half-decent (not ranking on Apple, just being realistic) documentation. Hopefully this will give Cocoa programmers something analagous to a NSWebView.

Like Gul said, you could theoretically interface with WebCore now, but you would be using a truly nasty combination of Objective-C and C++ to interface with an intertwined [mess] of Cocoa and QT/KDE code. Many people on Apple's cocoa-dev list have hacked around with it, and basically decided that if Apple releases the Safari SDK w/WebKit before the end of 2003, it would take less time to simply wait for it than to try to implement any kind of useable frontend by themselves.
"Think Different. Like The Rest Of Us."

iBook G4/1.2GHz | 1.25GB | 60GB | Mac OS X 10.4.2
Athlon XP 2500+/1.83GHz | 1GB PC3200 | 120GB | Windows XP
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Mar 8, 2003, 11:24 AM
 
The WebCore interface is, indeed, Obj-C and pretty much unusable. The current WebKit interface is Obj-C, too. It has been hinted at that the final Safari SDK release will have both an Obj-C/Cocoa API and a HIView-based C API for use in modern Carbon applications.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:52 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2