Education/Learning/XpcomComponents: Difference between revisions

Jump to navigation Jump to search
m
→‎UUID: Corrected MDC 'About Scriptable Interfaces' link
No edit summary
m (→‎UUID: Corrected MDC 'About Scriptable Interfaces' link)
Line 88: Line 88:
  [scriptable, uuid(...see below...)]
  [scriptable, uuid(...see below...)]


What does line 3 mean?  This says that our component is '''scriptable''', and can be used or implemented in scripting languages, JavaScript for example (see  http://developer.mozilla.org/en/docs/Interfaces:About_Scriptable_Interfaces).
What does line 3 mean?  This says that our component is '''scriptable''', and can be used or implemented in scripting languages, JavaScript for example (see  https://developer.mozilla.org/En/Interfaces/About_Scriptable_Interfaces).


Each interface needs to be uniquely identifiable, and Mozilla uses a 128-bit number called a '''UUID''' (Universally Unique Identifier) for this purpose.  You can generate one in a number of ways:
Each interface needs to be uniquely identifiable, and Mozilla uses a 128-bit number called a '''UUID''' (Universally Unique Identifier) for this purpose.  You can generate one in a number of ways:
14

edits

Navigation menu