Embedding Mozilla in Mac OS X Cocoa Apps
JimCricket writes "Art & Logic has published a new article: Embedding Mozilla in Mac OS X Cocoa Apps . The author presents a detailed step-by-step guide for Mac OS X developers that want to use Mozilla within their applications."
That site is completely useless. It's like apple.slashdot.org, but slower and full of Alex McCluskeys.
Slashdot for ever, baby.
I want to embed mozilla in my Cocoa version of Alex McCluskey.
Why would you embed Mozilla, which is acknowledged to be bloated even by its supporters, instead of Apple's WebKit (based on KHTML, used in Safari)?
WebKit Docs
Could this be done with Web Core as well? I assume it could be. What advantages would Gecko/Moz have over it? I don't really understand much of the technical mumbo jumbo in the article so any enlightenment would be great.
It seems that the basic use for this would be to simply provide app support for all the basic web standards, but what other uses could it have?
I don't even wanna know why you'd want to embed the whole frickin' browser in anything, rather than just the renderer. And if you're going to embed the renderer, then just use the system one in WebCore, based on the KHTML renderer.
I wonder if Safari/KHTML will become more popular on Mac OS X. Should one use Mozilla or KHTML in applications, and is it even possible to use KHTML?
I read the article, but don't understand why it would be necessary to embed a whole browser. Why not just the rendering engine? Wouldn't embedding Mozilla create a lot of overhead?
the answer to your "question" is in the FIRST SENTANCE of the article.
i know reading sure is tough, but it prevents you from looking like a fricken moron.
come on, its just a click away... all of your "questions" were indeed what the article talks about. jesus.
Why embed all of Mozilla? I'm positive that for most of these apps, all that would be needed is Firebird...
i use mozilla under win 32 for browsing and email, and it works great. to have the same under os x would be really good, especially as moz mail is much better than apple's email client.
most of the "kruft" that has "bloated" gecko is in fact the kind of support code that's slowly being added by apple to kthml to get it to support the *REAL* web. sure, this one instance of an a site unsupported by khtml has been plugged, but just around the corner there are *hundreds* of other sites, already workin in gecko mind you, that kthml is going to have to hack around. its horribly naive to think that in 1 years time when khtml comes close to approaching where gecko is *now* (not to mention where gecko will be in 12 months) that khtml will still be as light and clean as it is now.
For most programmers, we are just looking for a way to embed a small HTML rendering system so that we can display documentation, help, or someother hyperlinked document. Quickly too, so that we can easily get back to making a quality application. Gecko is a huge project and if you want to use it as the basis for an application more power to ya.
However, Apple has the edge here with WebCore, you can now make a generic web browser without a single line of C/C++/ObjC code. Using only project builder, Interface Builder and WebCore, you can create a custom browser. It won't have many options, but it's quick and easy. Takes like 10 minutes to get working if you have all the tools installed.
"Except that KHTML is already superior to Gecko NOW. You seem to have missed that little tidbit." sorry pal, you need to do some more research.
Safari ain't the bee's knees as far as I'm concerned, although I'm using it right now. It's got lots of advantages, sure, but it's still not handling as many pages as Mozilla for OSX. Mozilla 1.4 is fast and stable, and runs on almost everything. Safari is fast and stable and you need to be running OSX to use it.
Explorer is the world-wide de facto standard right now; it's a bad browser with a lot of propritary drek in it, and much more coming down the line, including possibly a subscription service. Why not embed Mozilla in everything? Since it's cross-platform, open source, and pretty good?
How would you rather do your online banking five years from now?
A) With Windows, which charges you $1,000 a month just for the right to use Explorer?
B) With Safari, which comes with a $25,000 entry-level iMac?
C) With Mozilla, which is free, and which will run on almost anything?
Mozilla isn't the be all and end all of browsers, but it's cross-platform, open-source, and runs all right. Nothing to sneeze at.
I noticed recently that there's work going on to embed SDL in Cocoa Apps, here's a link to some sample code:
5 54 35.html
"Mac OS X Cocoa Integration Patch and Sample Code"
http://www.libsdl.org/pipermail/sdl/2003-July/0
In theory, with this in place I believe it should also be possible to embed SDL in Mac OS X wxWindows apps, once the 'GetHandle' functionality is implemented there.
That's kind of the whole point of the Camino Project. Why reinvent the wheel?
mbbac
The article isn't about reinventing the wheel. It's about using (dare I say leveraging) Chimera/Camino in other Cocoa apps.
After reading all the comments here I think it's safe to say that mozilla on OS X sux and safari is da shit.
Quite strange as mozilla is quite competent on every other platform.
i know its easy to get confused