newbie question - xpcom dev

i'm planning to writing an XPCOM component is javascript.

1. how does javascript know to call the NSGetModule()
method when a file is loaded. it always does it?

2. if i'm writing some code in c++, i assume i have to
compile it for different platforms. does this result
in different platform specific extension (.xpi) files or
is it one file and the loader figures out the right version
(i.e. subfoler) to load based on platform.

3. is there an online source for detailed docs on all
the components and interfaces.

thx.



0
dashman
6/18/2008 9:46:49 PM
mozilla.dev.tech.xpcom 1345 articles. 0 followers. Post Follow

2 Replies
608 Views

Similar Articles

[PageSpeed] 3

dashman wrote:
> i'm planning to writing an XPCOM component is javascript.
> 
> 1. how does javascript know to call the NSGetModule()
> method when a file is loaded. it always does it?
> 
> 2. if i'm writing some code in c++, i assume i have to
> compile it for different platforms. does this result
> in different platform specific extension (.xpi) files or
> is it one file and the loader figures out the right version
> (i.e. subfoler) to load based on platform.

I have never do it, but I noticed that you can specify platform in 
install manifest.
http://developer.mozilla.org/en/docs/install.rdf

> 3. is there an online source for detailed docs on all
> the components and interfaces.

http://www.xulplanet.com/
0
PM
6/19/2008 4:32:35 AM
> 2. if i'm writing some code in c++, i assume i have to
> compile it for different platforms. does this result
> in different platform specific extension (.xpi) files or
> is it one file and the loader figures out the right version
> (i.e. subfoler) to load based on platform.

http://developer.mozilla.org/en/docs/Bundles

Platform-specific Subdirectories could be useful.
0
PM
6/19/2008 5:20:23 AM
Reply:

Similar Artilces:

Merging dev-tech-layout into dev-platform
Today I found out that I had missed a post from David Baron on dev-tech-layout, because I had no idea that this list exists. I think dev-platform is a better place to have the conversation related to the layout module (people are already having discussions about other modules over there). Does anybody have any objections? Cheers, Ehsan ...

Merging dev-tech-layout into dev-platform
Today I found out that I had missed a post from David Baron on dev-tech-layout, because I had no idea that this list exists. I think dev-platform is a better place to have the conversation related to the layout module (people are already having discussions about other modules over there). Does anybody have any objections? Cheers, Ehsan ...

Merging dev-gaia and dev-b2g into dev-fxos
--001a113ce93ebce35d051e4c0c73 Content-Type: text/plain; charset=UTF-8 Hello people of Firefox OS, After a discussion we have decided that the distinction between dev-gaia and dev-b2g mailing lists is not enough to warrant maintaining two lists. So we are deprecating both in favor of dev-fxos. So if you are subscribed to one of the aforementioned lists, you will be subscribed to the new dev-fxos list and we will shortly be decommissioning dev-gaia and dev-b2g. Thanks! Michael --001a113ce93ebce35d051e4c0c73 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: qu...

Merging dev-gaia and dev-b2g into dev-fxos
--001a113ce93ebce35d051e4c0c73 Content-Type: text/plain; charset=UTF-8 Hello people of Firefox OS, After a discussion we have decided that the distinction between dev-gaia and dev-b2g mailing lists is not enough to warrant maintaining two lists. So we are deprecating both in favor of dev-fxos. So if you are subscribed to one of the aforementioned lists, you will be subscribed to the new dev-fxos list and we will shortly be decommissioning dev-gaia and dev-b2g. Thanks! Michael --001a113ce93ebce35d051e4c0c73 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: qu...

[PATCH] File::Path::mkpath, /dev, /dev/dir and /dev/000000 changes
While fetching GD with CPAN.PM, I ran into some problems with File::Path::mkpath, in particular with rooted logicals: $ define/job/trans=conceal root_abcd_1 disk:[perl.cpan.build.id.blah.] mkpath('/root_abcd_1/lds') fails with a "invalid parameter" error when it tries to mkdir('/root_abcd_1'). There's a test in the code for a '000000' directory, but not for the lack of a directory....I suspect that the test was put in to prevent endless loops, prior to a modification of the File::Basename code. So here's a change that does the...

*.dev = docs/dev/*.pod ??
Hi all, I've been reading through some of the pdd's and have noticed mention of *.dev files for actual implementation of features. I'm fairly sure these are actually the pod files under docs/dev, but I just wanted to make sure of this before I make the pdd's point to the files in this directory instead of the *.dev files. Thanks! Paul Paul Cochrane wrote: > Hi all, > > I've been reading through some of the pdd's and have noticed mention > of *.dev files for actual implementation of features. I'm fairly sure > these are actually ...

dev
i have a dream it's... when i add something to my table of the database i want to show in the first page like.... i have a news table in database and when i add a news i need to show automaticlly this news in the news table of the main page... and i u can tell me how to it with the graphica that i made to be added to it i'll be so happy.. Hi, it sounds like you're just going to have a default page that has a repeater/datalist control of which you set the DataSource equal to a dataset filled with data from the news table. Please take a look at the quickstart tutorials for this. Please ...

DEv
Name: dany shemesh Email: dany74qatgmaildotcom Product: Shiretoko Alpha 2 Summary: DEv Comments: I`m a developer,looking for beta testing and development jobs. I love the community,my work is of course free. Browser Details: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2a1) Gecko/20090806 Namoroka/3.6a1 From URL: http://www.mozilla.org/projects/firefox/3.6a1/firstrun/ Note to readers: Hendrix gives no expectation of a response to this feedback but if you wish to provide one you must BCC (not CC) the sender for them to see it. ...

/dev/hda vs /dev/hdb
Before I go and delete a bunch more files, this is right, right? Primary IDE channel: 2 HDDs Secondary IDE channel: 1 CD-DVD The HDD on the primary channel with the master jumper is /dev/hda The HDD on the primary channel jumpered to slave is /dev/hdb Gonna try this: dd if=/dev/hda of=/dev/hdb Wanting to clone HDD. Going the wrong direction would not be pretty. :) Greg wrote: > Before I go and delete a bunch more files, this is right, right? > > Primary IDE channel: 2 HDDs > > Secondary IDE channel: 1 CD-DVD > > The HDD on the primary channe...

Communication by Firefox devs to add-on devs
The time has come for the developers of Firefox to start communicating with the developers of add-ons. As a case in point: Recently the classic.manifest file in fx3 has had a large number of override codes added to it that reassigned filenames from example.png to example-aero.png. Suddenly, all third-party themes in Vista are now missing buttons in a number of places - some of them not easy to spot (e.g. - the wrap icon that shows up only when you reach the bottom of a page in a page search). If one of the themers had not had a user using Vista who communicated with him, and if the t...

Calendar:Dev Guide -- dev support
Hi calendar team! During todays telco you proposed to get more helpers for LG. Sounds good .... but maybe you can make life a bit easier? Calendar:Dev Guide gives a good overview about the code structure and pointing to a lot points. But how about a CVS link? And how to build a "Lightning.xpi" for testing any changes before going to post a change? I'm using eclispe with ANT (and XULbooster) which is doing very well for CVS as well as to build the XPI. Any help/links for that? G�nter Hello G=FCnter! The Dev_Guide is a bit out of date. Some things have c...

dev.b2g and dev.gaia redundancy?
I'm relatively new to the project but I see more overlap than not lately in the dev.b2g and dev.gaia newsgroups. Are the original motivations for having distinct groups still still applicable? Would things be easier for more people if we collapsed down to one group? Is that an awful idea? - A +1, half the emails are sent to both lists to take it further I am sitting alone in #fxos on irc On 4 December 2013 00:22, Asa Dotzler <asa@mozilla.com> wrote: > I'm relatively new to the project but I see more overlap than not lately > in the dev.b2g and dev....

Question for YAST devs...
I'm going to be building a desktop app and we're looking at using HTML//javascript/css for the GUI but we're not sure of the best way to do this and map it up with c++/Java code. We know (believe) that the new YAST uses an HTML front-end and we're wondering if someone could give us some ideas as to what was doen in YAST. Thanks! -- 6tr6tr ------------------------------------------------------------------------ 6tr6tr wrote: > we're wondering if someone could give us some ideas as to what was > doen in YAST. as a matter of routine there are ...

Dev Env. Questions...
Ok, this is a bit stupid BUT I'm stumped! Created as Class Library in the DotNetNuke.DesktopModules solution for a new custom module etc. no prob. Created a tempcontrols folder in DNN project then move the controls into the Class Library project. no prob. In this way I created a few user-controls to be used in parent controls. NOW, try to add one user control to a parent control, it does not display a UserControl "box" on the parent control but puts a link/path to the control. If this is done in a Web App project the UserControl "box" is displayed, no prob. BUT doing this within ...

A question on the dev process
Hi, I am registered to a bunch of bugmail components and for the web APIs, I notice a lot of "develop tests for X". I'm somewhat surprised by these emails, because I thought tests were developed as part of write the code for a feature. Is there a particular reason for separating feature and tests? David On Thursday, November 22, 2012 5:53:30 AM UTC+8, David Bruant wrote: > Hi, >=20 > I am registered to a bunch of bugmail components and for the web APIs, I= =20 > notice a lot of "develop tests for X". I'm somewhat surprised by these=...

Web resources about - newbie question - xpcom dev - mozilla.dev.tech.xpcom

West Lothian question - Wikipedia, the free encyclopedia
He illustrated his point by pointing out the absurdity of a Member of Parliament for West Lothian being able to vote on matters affecting the ...

The security questions that every company should be asking in 2015
With more businesses operating online than ever before, security has moved from physical to virtual. Ensuring the safety of the details of your ...

Submit your questions for Autoblog Podcast #460
Filed under: Podcasts We're recording Autoblog Podcast #460 this week, and our main focus will be answering our listeners' questions. Submit ...

General Question
I have a Carrier furnace. It takes 20x25x5 air filters. Does it really matter what brand filter I buy?

Want to land a job at Netflix? You’ll have to answer these tough questions first
Netflix sounds like an incredibly cool place to work if you're a software engineer but they don't let just anybody come in to code for them. ...

Hillary's communications director Jen Palmieri sounded utterly terrified facing questions from George ...
Palmieri should have been perfectly prepared. She's the communications director so she should be an ace at communications. She knew the precise ...

31 tough interview questions you'll have to answer if you want to work at Netflix
New year, new job? If you want to work at Netflix, you might have to answer some hard interview questions first. Using Glassdoor's information ...

“R. Kelly walked out of a HuffPo interview after some awkward questions” links
R. Kelly walked out of HuffPo interview after being asked some awkward questions about his fans’ reactions to his sexual assault of minors. [Dlisted] ...

Juniper faces questions about spying code planted in software
The discovery of spying code nestled deeply in Juniper's networking equipment, the latest example of a major IT vendor caught up in an damaging ...

Ask Me Anything: Question 6
Continuing with the Ask Me Anything series , today’s question is about startup stress And here is my answer Part of reducing startup stress ...

Resources last updated: 12/22/2015 9:11:22 PM