<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Building a firefox plugin – part one</title>
	<atom:link href="http://colonelpanic.net/2009/03/building-a-firefox-plugin-part-one/feed/" rel="self" type="application/rss+xml" />
	<link>http://colonelpanic.net/2009/03/building-a-firefox-plugin-part-one/</link>
	<description>Dumping our corps so you don&#039;t have to</description>
	<lastBuildDate>Mon, 30 Aug 2010 08:37:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Yuanjuzeng</title>
		<link>http://colonelpanic.net/2009/03/building-a-firefox-plugin-part-one/comment-page-2/#comment-377</link>
		<dc:creator>Yuanjuzeng</dc:creator>
		<pubDate>Wed, 11 Aug 2010 03:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://colonelpanic.net/?p=42#comment-377</guid>
		<description>Thank you for your reply.And the article you gave helps me a  lot.</description>
		<content:encoded><![CDATA[<p>Thank you for your reply.And the article you gave helps me a  lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: taxilian</title>
		<link>http://colonelpanic.net/2009/03/building-a-firefox-plugin-part-one/comment-page-2/#comment-374</link>
		<dc:creator>taxilian</dc:creator>
		<pubDate>Tue, 10 Aug 2010 14:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://colonelpanic.net/?p=42#comment-374</guid>
		<description>Keep in mind, this is not a simple topic.  Make sure you have read part three of this series about NPObjects so that you understand how it works.  You&#039;re going to implement the addEventListener method on your NPObject that expects three parameters, just like any element.  the function when it gets to you will be an NPObject*.  Read up on the npapi memory management post on this site for information on how retainobject works.  Save the NPObject* to the function, which is your event handler, and call NPN_Invoke when you want to &quot;fire&quot; the event. Make sure it&#039;s on the main thread. </description>
		<content:encoded><![CDATA[<p>Keep in mind, this is not a simple topic.  Make sure you have read part three of this series about NPObjects so that you understand how it works.  You&#8217;re going to implement the addEventListener method on your NPObject that expects three parameters, just like any element.  the function when it gets to you will be an NPObject*.  Read up on the npapi memory management post on this site for information on how retainobject works.  Save the NPObject* to the function, which is your event handler, and call NPN_Invoke when you want to &#8220;fire&#8221; the event. Make sure it&#8217;s on the main thread.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rams</title>
		<link>http://colonelpanic.net/2009/03/building-a-firefox-plugin-part-one/comment-page-2/#comment-373</link>
		<dc:creator>Rams</dc:creator>
		<pubDate>Tue, 10 Aug 2010 14:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://colonelpanic.net/?p=42#comment-373</guid>
		<description>thanks taxilian ... I could n`t create and fire event in my npruntime plugin .I did try to see your framework code that firebreat code.But i could n`t understand because i am new in this area .Your code is have a lot of line .I need just create one event and fire from firefox plugin.Can you explain or share that limit of code or your post link about event ? 


I saw your reply to sleepy about event.
        &quot;When they call addEventListener, the parameter that is a function gets passed in as an NPObject *; NPN_RetainObject this and store it in a multimap or similar with the name of the event as the key.

When they call removeEventListener, search through and see if you have a saved pointer to the passed-in npobject; if so, NPN_ReleaseObject it and delete your saved pointer.

When you need to fire an event, marshall the arguments you want as an array of NPObjects and loop through all of the saved npobjects for that event and call NPN_InvokeDefault on each of them. &quot;

I couldn`t understand ,function gets passed in as an NPObject *; NPN_RetainObject and invoke NPN function. 


Regards
Rams</description>
		<content:encoded><![CDATA[<p>thanks taxilian &#8230; I could n`t create and fire event in my npruntime plugin .I did try to see your framework code that firebreat code.But i could n`t understand because i am new in this area .Your code is have a lot of line .I need just create one event and fire from firefox plugin.Can you explain or share that limit of code or your post link about event ? </p>
<p>I saw your reply to sleepy about event.<br />
        &#8220;When they call addEventListener, the parameter that is a function gets passed in as an NPObject *; NPN_RetainObject this and store it in a multimap or similar with the name of the event as the key.</p>
<p>When they call removeEventListener, search through and see if you have a saved pointer to the passed-in npobject; if so, NPN_ReleaseObject it and delete your saved pointer.</p>
<p>When you need to fire an event, marshall the arguments you want as an array of NPObjects and loop through all of the saved npobjects for that event and call NPN_InvokeDefault on each of them. &#8221;</p>
<p>I couldn`t understand ,function gets passed in as an NPObject *; NPN_RetainObject and invoke NPN function. </p>
<p>Regards<br />
Rams</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: taxilian</title>
		<link>http://colonelpanic.net/2009/03/building-a-firefox-plugin-part-one/comment-page-2/#comment-371</link>
		<dc:creator>taxilian</dc:creator>
		<pubDate>Tue, 10 Aug 2010 13:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://colonelpanic.net/?p=42#comment-371</guid>
		<description>You can&#039;t.  Please read this post: http://colonelpanic.net/2010/08/browser-plugins-vs-extensions-the-difference/</description>
		<content:encoded><![CDATA[<p>You can&#8217;t.  Please read this post: <a href="http://colonelpanic.net/2010/08/browser-plugins-vs-extensions-the-difference/" rel="nofollow">http://colonelpanic.net/2010/08/browser-plugins-vs-extensions-the-difference/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuanjuzeng</title>
		<link>http://colonelpanic.net/2009/03/building-a-firefox-plugin-part-one/comment-page-2/#comment-370</link>
		<dc:creator>Yuanjuzeng</dc:creator>
		<pubDate>Tue, 10 Aug 2010 12:20:03 +0000</pubDate>
		<guid isPermaLink="false">http://colonelpanic.net/?p=42#comment-370</guid>
		<description>hi,i am new to firefox plugin.I want to develop a plugin that can get the content of the website.How can i do?</description>
		<content:encoded><![CDATA[<p>hi,i am new to firefox plugin.I want to develop a plugin that can get the content of the website.How can i do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: taxilian</title>
		<link>http://colonelpanic.net/2009/03/building-a-firefox-plugin-part-one/comment-page-2/#comment-369</link>
		<dc:creator>taxilian</dc:creator>
		<pubDate>Mon, 09 Aug 2010 19:08:32 +0000</pubDate>
		<guid isPermaLink="false">http://colonelpanic.net/?p=42#comment-369</guid>
		<description>For install issues, see: &lt;a href=&quot;https://developer.mozilla.org/en/Plugins/The_First_Install_Problem&quot; rel=&quot;nofollow&quot;&gt;https://developer.mozilla.org/en/Plugins/The_Fi...&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>For install issues, see: <a href="https://developer.mozilla.org/en/Plugins/The_First_Install_Problem" rel="nofollow"></a><a href="https://developer.mozilla.org/en/Plugins/The_Fi.." rel="nofollow">https://developer.mozilla.org/en/Plugins/The_Fi..</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rams</title>
		<link>http://colonelpanic.net/2009/03/building-a-firefox-plugin-part-one/comment-page-2/#comment-368</link>
		<dc:creator>Rams</dc:creator>
		<pubDate>Mon, 09 Aug 2010 18:58:10 +0000</pubDate>
		<guid isPermaLink="false">http://colonelpanic.net/?p=42#comment-368</guid>
		<description>taxilian ... thanks to reply ... I have developed npruntime plugin for firefox .Actually i asked to u that ,how to call a JS method from the plugin .But after see your another post ,I have understood .&lt;br&gt;&lt;br&gt;Do you know how to package and add register entry for that dll in user machine ? If you have posted previous, can you give like ..&lt;br&gt;&lt;br&gt;Regards &lt;br&gt;Rams</description>
		<content:encoded><![CDATA[<p>taxilian &#8230; thanks to reply &#8230; I have developed npruntime plugin for firefox .Actually i asked to u that ,how to call a JS method from the plugin .But after see your another post ,I have understood .</p>
<p>Do you know how to package and add register entry for that dll in user machine ? If you have posted previous, can you give like ..</p>
<p>Regards <br />Rams</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: taxilian</title>
		<link>http://colonelpanic.net/2009/03/building-a-firefox-plugin-part-one/comment-page-2/#comment-367</link>
		<dc:creator>taxilian</dc:creator>
		<pubDate>Mon, 09 Aug 2010 18:34:38 +0000</pubDate>
		<guid isPermaLink="false">http://colonelpanic.net/?p=42#comment-367</guid>
		<description>I don&#039;t understand what you are asking, but events work fine.  Please read my other posts, and particularly look at using FireBreath, which simplifies a lot of things, particularly if you are new in the area.</description>
		<content:encoded><![CDATA[<p>I don&#39;t understand what you are asking, but events work fine.  Please read my other posts, and particularly look at using FireBreath, which simplifies a lot of things, particularly if you are new in the area.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rams</title>
		<link>http://colonelpanic.net/2009/03/building-a-firefox-plugin-part-one/comment-page-2/#comment-366</link>
		<dc:creator>Rams</dc:creator>
		<pubDate>Mon, 09 Aug 2010 11:17:07 +0000</pubDate>
		<guid isPermaLink="false">http://colonelpanic.net/?p=42#comment-366</guid>
		<description>Hi ,&lt;br&gt;  I have developed np plugin. I am new in this area .I have one doubt that can i communicate javascript function from plugin like event in ActiveX .</description>
		<content:encoded><![CDATA[<p>Hi ,<br />  I have developed np plugin. I am new in this area .I have one doubt that can i communicate javascript function from plugin like event in ActiveX .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rymeister</title>
		<link>http://colonelpanic.net/2009/03/building-a-firefox-plugin-part-one/comment-page-2/#comment-338</link>
		<dc:creator>rymeister</dc:creator>
		<pubDate>Sat, 12 Jun 2010 03:36:01 +0000</pubDate>
		<guid isPermaLink="false">http://colonelpanic.net/?p=42#comment-338</guid>
		<description>I&#039;m having this exact same problem.  Were you ever able to find a solution?</description>
		<content:encoded><![CDATA[<p>I&#39;m having this exact same problem.  Were you ever able to find a solution?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
