Closed Bug 759868 Opened 12 years ago Closed 12 years ago

xpcom example 'extends' wrong?

Categories

(Add-on SDK Graveyard :: Documentation, defect, P1)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: glind, Assigned: wbamberg)

References

Details

Attachments

(1 file, 1 obsolete file)

Priority: -- → P1
Target Milestone: --- → 1.8
Assignee: nobody → wbamberg
Lets punt on this to 1.9's cycle.
Target Milestone: 1.8 → 1.9
Pull request 482 (https://github.com/mozilla/addon-sdk/pull/482) from @dcrewi already fixes the examples: this just adds dcrewi to the credits and fixes some other typos.
Attachment #640376 - Flags: review?(rFobic)
Attachment #640376 - Flags: review?(rFobic) → review-
Assignee: wbamberg → rFobic
What's the status here?
Assignee: rFobic → wbamberg
I'll take this, and hope to get it into 1.10.
Attached file a new pull request
I've rewritten the documentation for xpcom.

A few things came up while doing this:

1) Factory.description does not seem to be updated when I pass the "description" option to its constructor, it just keeps the default value. Is this intentional?

2) There seems to be a bit of inconsistency in the error handling for some of these functions: when Things aren't found, some throw errors, some do nothing or return null. Should we be consistent?

3) I don't understand how this:

    Cc[contractId].getService(Ci.nsISupports);

works. Where's that getService() defined? I would like to point to its definition from the docs.

Thanks for the review!
Attachment #640376 - Attachment is obsolete: true
Attachment #659404 - Flags: review?(rFobic)
Comment on attachment 659404 [details]
a new pull request

This documentation is great, thanks Will!!

I also put few suggestion comments, I'm leaving it up to you to decide.
Attachment #659404 - Flags: review?(rFobic) → review+
Commit pushed to master at https://github.com/mozilla/addon-sdk

https://github.com/mozilla/addon-sdk/commit/2f21eccea449a3e383e11aa69c91b54d85d7f700
Merge pull request #484 from wbamberg/759868

Bug 759868 - xpcom example 'extends' wrong?
Commit pushed to stabilization at https://github.com/mozilla/addon-sdk

https://github.com/mozilla/addon-sdk/commit/c3aec726eff8287aeb1d031c2920c8855e518ad4
Merge pull request #484 from wbamberg/759868

Bug 759868 - xpcom example 'extends' wrong?(cherry picked from commit 2f21eccea449a3e383e11aa69c91b54d85d7f700)
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: