Hi Jason,

On Oct 27, 2004, at 5:31 PM, Jason wrote:

Hey all.  Am working on embedding mozilla into a cross-platform app.
I got it working decently on windows, and am now working on porting
things over to the Mac.

What frameworks/libraries must I link against?  Since there's not a
nightly SDK build for mac, I built Mozilla and checked out the
dist/sdk/ directory, which does have libembed_base_s.a, which I assume
I need to link against, but there's only libxpcomglue.a, wherease  on
Win32 there's xpcom.lib.  I'm statically linking to the embedding
libraries rather than using MRE, just to make my life easier at this
point.

Which libraries are necessary for basic embedding in a Carbon App -
for NS_InitEmbedding() and NS_TermEmbedding(), as well as a few  of
the XPCOM modules for window creation, etc??

They're the same libraries you embed with on Windows. They may be "dylibs" rather than "dlls" now, but the lib names and the API are the same. Note that there is no Mac Framework, but you just need to be sure the libraries and support files are on the path, like with Windows.


Also, I know on Windows it uses child windows for the embedded object.
 Since there aren't child windows on MacOSX, how is the embedding
accomplished?  Is there anything different I need to do since Mozilla
can't just register it's own windowproc for the embedded window?

At the moment, yes, you need to do some other things. Basically, the best way to explain it is that you need to forward top level window events to Mozilla when necessary, and also be very careful about the drawing origin to ensure that your app can "undo" any changes Mozilla makes to the origin while drawing.


It's not really true that there aren't child windows on OS X anymore, and I've done some work to make Mozilla use child windows like on Windows (though it's a lot of work, and no one's volunteered to help, so it's taking time...).

If it's of any benefit, the app I'm working with is all QuickDraw
based, not quartz, and not using composited windows or anything.

At this point, that's better off for you because it more closely matches the situation with Mozilla itself.


Thanks,

Kevin

_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to