Thanks for the reply, Kevin.  A couple questions:


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.

This confuses me, as the Mac SDK definitely does include some frameworks: libembed_base_s.a, libxpcomglue_s.a, and libxpcomglue.a. Also, there is no "xxxEmbedxxx.dylib" in the sdk/bin/ directory, while there is "libxpcom.dylib". (For the record, I'm building 1.7rc3 source). If I were to use strictly .dylib's, which would contain the embedding components(not just XPCOM)? I'm sorry if there is an obvious answer I am missing.


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.

I haven't had much time to dig through the source and see how this is implemented on the Mac side, but what is the interface for passing the window events to mozilla? Is it a general/cross-platform interface, or something specific to the mac platform?


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...).

Honestly, child windows make my life more difficult rather than easier. What I am building is a UI widget that could potentially be overlapped by other widgets, be placed on a tab control and thus "invisible" while the parent window is visible, etc. At this point I don't have time to dig into the Mozilla source and try to modify the default behavior so I control the drawing/clipping of the client area, while that would be the ideal solution.


Again, thanks for your help. I'm sure more of this will become clear as I have time to dig into the mac-specific implementation. Any pointers are greatly appreciated.

J

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

Reply via email to