mozilla

Compare Revisions

Generating GUIDs

Change Revisions

Revision 85432:

Revision 85432 by Hywan on

Revision 85433:

Revision 85433 by Sevenspade on

Title:
Generating GUIDs
Generating GUIDs
Slug:
Generating_GUIDs
Generating_GUIDs
Tags:
Tools, Extensions, Add-ons, XPCOM, Developing_Mozilla:Tools, "Developing Mozilla"
Tools, Extensions, Add-ons, XPCOM, Developing_Mozilla:Tools, "Developing Mozilla"
Content:

Revision 85432
Revision 85433
n8      <strong>GUID</strong>s are used in Mozilla programming for n8      <strong>GUID</strong>s are used in Mozilla programming for 
>identifying several types of entities, including XPCOM <a href="/>identifying several types of entities, including XPCOM <a href="/
>en/Interfaces" title="en/Interfaces">Interfaces</a> (this type of>en/Interfaces" title="en/Interfaces">Interfaces</a> (this type of
> GUIDs is callled IID), components (CID), and add-ons, like <a hr> GUIDs is callled IID), components (CID), and add-ons, like <a hr
>ef="/en/Extensions" title="en/Extensions">extensions</a> and <a h>ef="/en/Extensions" title="en/Extensions">extensions</a> and <a h
>ref="/en/Themes" title="en/Themes">themes</a>, although add-ons <>ref="/en/Themes" title="en/Themes">themes</a>, although add-ons <
>a href="/en/Install_Manifests#id" title="en/Install_Manifests#id">a href="/en/Install_Manifests#id" title="en/Install_Manifests#id"
>>can (and should) be identified</a> with IDs of form <code><a cla>>can (and should) be identified</a> with IDs of form <code><var>e
>ss=" link-mailto" href="mailto:extensionname@organization.tld" re>xtensionname</var>@<var>organization</var>.<var>tld</var></code> 
>l="freelink">extensionname@organization.tld</a></code> since <a h>since <a href="/en/Firefox_1.5_for_developers" title="en/Firefox_
>ref="/en/Firefox_1.5_for_developers" title="en/Firefox_1.5_for_de>1.5_for_developers">Firefox 1.5</a>.
>velopers">Firefox 1.5</a>. 
9    </p>
10    <p>
11      {{ warning("If you just want an ID for your add-on, generat
 >ing a GUID is almost definitely not what you want to do. Using th
 >e <code><var>extensionname</var>@<var>organization</var>.<var>tld
 ></var></code> form is approximately one thousand times easier for
 > everyone involved. Don't have a domain name? Do you have a blog 
 >on a subdomain? Use that. If all else fails, using <code><var>ext
 >ensionname</var>@addons.mozilla.org</code> should be fine; no one
 > will care. Remember, these are identifiers, not e-mail addresses
 >, and they're never resolved.") }}
n60      A UUID can be generated from privileged Mozilla code using n63      A UUID can be generated from privileged Mozilla code using 
><code><a href="/en/nsIUUIDGenerator" title="en/nsIUUIDGenerator">><code><a href="/en/XPCOM_Interface_Reference/nsIUUIDGenerator" ti
>nsIUUIDGenerator</a></code>. See the linked page for details.>tle="en/nsIUUIDGenerator">nsIUUIDGenerator</a></code>. See the li
 >nked page for details.
t124    <p>t127    <dl>
128      <dd>
125      {{ languages( { "fr": "fr/G\u00e9n\u00e9ration_de_GUID", "j129        {{ languages( { "fr": "fr/G\u00e9n\u00e9ration_de_GUID", 
>a": "ja/Generating_GUIDs", "pl": "pl/Generowanie_GUID" } ) }}>"ja": "ja/Generating_GUIDs", "pl": "pl/Generowanie_GUID" } ) }}
130      </dd>
126    </p>131    </dl>

Back to History