30-11-2012, 06:15 PM
An Introduction to XPConnect
An Introduction.pdf (Size: 404.7 KB / Downloads: 34)
XPCOM
• Cross Platform Component Object Model
• Provides a framework for writing crossplatform,
modular software
• Provides the abstraction required to write
applications that will run on the Mozilla
platform across the variety of operating
systems that Mozilla supports
Components
• Core: Type System, Data Structures, Streams
• UI: Clipboard, Drag-and-Drop, XUL
• Application: Preferences, Profiles, WM
• Network: Channels, Protocol Handlers
• DOM, Mail and several others
• You can even create you own!
Interface Description
• Language neutral way to specify interfaces to
the XPCOM components
• The Interface Definition Language used by
Mozilla (IDL) is slightly different than the
conventional ones
• XPCOM initially meant to be used in C++
Development Tools
• Best way to work with Javascript is Firefox
• Plugins that you will find helpful:
• Console2
• Extension Developer
• Firebug
• jsLib
• XPCOMViewer
Power Javascript
• Think of Javascript as a language
• All XPCOM components are available as
regular Javascript OBJECTS