--- books/www/corrections.html 2003/03/19 11:35:08 1.99
+++ books/www/corrections.html 2003/04/03 15:44:36 1.115
@@ -87,11 +87,26 @@ shown in Figure 2-5.' has been chang
locale, and skin, as shown in Figure 2-5. The locale directory will have the default 'en-US' language pack
structure.'
+
On page 25: In Figure 2-5 there should be an en-US subfolder under the locale folder. Here is a correct image (Click for bigger
+version):
+
+
+
On page 31: In Example 2-14 'locale/' has been changed to 'locale/en-US/'
On page 32: In Example 2-15 'locale,install,url,resource:/chrome/xfly/locale/' has been changed to 'locale,install,url,resource:/chrome/xfly/locale/en-US/'
+On page 33: A warning note has been added before the last paragraph of the chapter
+
+
+If you have trouble editing and relaunching the xFly application, there are a couple of platform specific culprits to look into. On
+Windows, the Quick Launch feature may prevent you from seeing changes to your files. On Unix, file permission conflicts can also cause
+problems viewing your files. Making sure that Quick Launch is disabled and double checking file permissions may help get xFly working
+on your system.
+
+
@@ -126,7 +141,7 @@ changed to '<descrip
On page 54: 'Clicking on the box sets the clicked attribute' has been
changed to 'Clicking on the box sets the checked attribute'
-On pages 58 and 59: Example 3-15 has been changed to (note the addition of spaces to seperate values)
+On pages 58 and 59: Example 3-15 has been changed to (note the addition of spaces to separate values)
@@ -191,6 +206,23 @@ class="fixed">The chrome URL that
On page 120: 'dump(l+'\n');' has been changed to 'dump(len+'\n');'
+On page 123: Example 5-3
+
+for (var i=0; i
+has been changed to
+
+for (var i=0; i
+
+
+
On page 135: Example 5-11 has been changed to
@@ -201,10 +233,10 @@ class="fixed">The chrome URL that
var sample = Components.classes["@mozilla.org/sound;1"].createInstance();
sample = sample.QueryInterface(Components.interfaces.nsISound);
const SND_NETWORK_STD_CID = "@mozilla.org/network/standard-url;1";
- const SND_I_URL = "nsIURL";
- const SND_URL = new C.Constructor(SND_NETWORK_STD_CID, SND_I_URL);
- var url = new SND_URL();
- url.spec = 'http://jslib.mozdev.org/test.wav';
+ const SND_I_URL = "nsIURL";
+ const SND_URL = new C.Constructor(SND_NETWORK_STD_CID, SND_I_URL);
+ var url = new SND_URL();
+ url.spec = 'http://jslib.mozdev.org/test.wav';
sample.play(url);
}
@@ -231,7 +263,7 @@ load('chrome/jslib/jslib.js');'
<
-- On page 145: Example 6-1 has been changed to
+ - On page 145: Example 6-1 has been changed to
var myFile = "xFly.jar";
@@ -241,17 +273,17 @@ initInstall( // ini
"0.0.1", // version of install
1); // flags - an optional argument,
// reserved for future use
-f = getFolder("Chrome"); // specify a target directory
+f = getFolder("Chrome"); // specify a target directory
setPackageFolder(f);
-addFile(myFile); // add software to the installation
+addFile(myFile); // add software to the installation
registerChrome(
PACKAGE | DELAYED_CHROME, // chrome switch (i.e., type)
getFolder("Chrome","xFly.jar"), // destination of package
"content/xFly/"); // location of manifest in package
-if (0 == getLastError( )) // if there have been no errors:
- performInstall( ); // install "xfly.jar"
-else // otherwise
- cancelInstall( ); // cancel the installation.
+if (0 == getLastError( )) // if there have been no errors:
+ performInstall( ); // install "xfly.jar"
+else // otherwise
+ cancelInstall( ); // cancel the installation.
@@ -271,7 +303,7 @@ else // otherwi
Here is a correct image (Click for bigger version):
-
+
@@ -361,6 +393,20 @@ function NSGetModule(compMgr, fileSpec)
+On page 237: Example 8-13, line 9
+
+ NS_INIT_REFCNT( ); // has been depricated use NS_INIT_ISUPPORTS()
+ mValue = PL_strdup("default value");
+
+has been changed to
+
+ // NS_INIT_REFCNT( ); // has been depricated use NS_INIT_ISUPPORTS()
+ NS_INIT_ISUPPORTS();
+ mValue = PL_strdup("default value");
+
+
+
+
On page 239: Example 8-15 has been changed to
@@ -409,22 +455,109 @@ install:: $(TARGETS)
+- On page 247: 'When it appears inside the <template>, the <listbox> tag has two special attributes.'
+has been changed to 'The <listbox> gains two special attributes when it contains a <template>.'
+
+
+ - On page 250: '"Using Data for Style,"' has been changed to '"Using Data for Style",'
+
+
+ - On page 254: Example 9-5
+
+
+
+ >
+
+
+
+ >House
+ >
+
+
+ ="Face Fly"/>
+
+
+
+
+
+
+
+
+
+has been changed to
+
+
+
+ >
+
+
+
+ >House
+
+
+
+
+ ="Face Fly"/>
+
+
+
+
+
+
+
+
+
+
- On page 255: Example 9-6
+
+
+
+
+
+
+
+
+
+has been changed to
+
+
+
+
+
+
+
+
+
- On page 257: In Example 9-7
-
+
has been changed to
+
- On page 258: 'The most important additions to Example 9-7 are the
+container="?uri" member="?listitem" attributes on the <template>' has been
+changed to 'The most important inclusions to Example 9-7 are the
+container="?uri" member="?listitem" attributes on the <template>'
+
+
@@ -432,12 +565,36 @@ has been changed to
+- One page 268: In Example 10-1 '<rdf:Description about="http://my.jar-of-flies.com">' has been
+changed to '<rdf:Description about="urn:root">'
+
+ - On page 279: 'The URI is also accessible as a datasource property:' has been
+changed to 'The URI, such as rdf:someName, is also accessible as a datasource
+property:'
+
- On page 280: In Table 10-3 'Mostly used for retrieving, datasources, resources, and literals.' has been
changed to 'Mostly used for retrieving datasources, resources, and literals.'
+ - On page 288: The code at the top of the page
+
+
+containerUtils = Components.classes['@mozilla.org/rdf/container-utils;1'
+ getService(Components.interfaces.nsIRDFContainerUtils);
+
+
+has been changed to:
+
+
+containerUtils = Components.classes['@mozilla.org/rdf/container-utils;1'].
+ getService(Components.interfaces.nsIRDFContainerUtils);
+
+
- On page 297: 'http://www.jslib.mozdev.org' has been changed to 'http://jslib.mozdev.org'
+ - On page 297: In Example 10-14 '// if(del)gRDF.removeSeq('types',false);' has been deleted. It is not
+needed in this example.
+
@@ -472,12 +629,8 @@ has been changed to (note the difference
print ' ' % form['op3'].value
-
+On page 341: The following sentence has been deleted 'You can delete the key3.db and secmod.db files
+because they do not pertain to certificate creation or modification.'
@@ -489,21 +642,59 @@ href="http://certs.mozdev.org">http://ce
On page 365: 'http://www.mozilla.org/source.tml' has been changed to 'http://www.mozilla.org/source.html'
+
-
+On page 367 and 368: CVS Instructions ...
+
+Linux Instructions (p367)
+
+1. Set the CVSROOT variable:
+ $ setenv CVSROOT :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
+2. Log in as anonymous@cvs-mirror.mozilla.org using the password "anonymous":
+
+
+has been changed to (note the adding to '=' after CVSROOT,
+the changing of 'setenv' to 'export',
+and the simplification of instruction 2)
+
+
+1. Set the CVSROOT variable:
+ $ export CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
+2. Log in using the password "anonymous":
+
+
+Windows Instructions (p368)
+
+1. Set the CVSROOT variable:
+ > set CVSROOT :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
+2. Log in as anonymous@cvs-mirror.mozilla.org using the password "anonymous":
+
+has been changed to (note the adding to '=' after CVSROOT,
+and the simplification of instruction 2)
+
+
+1. Set the CVSROOT variable:
+ > set CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
+2. Log in using the password "anonymous":
+
+
+
+
+
Index
-- On page 437: 'Chimera, 2' has been changed to 'Camino, 2'
+ -
+On page 437: 'Chimera, 2' has been changed to 'Camino, 2'
+
-
-
+