On 11/21/14, 1:17 AM, Yonggang Luo wrote:
I am looking for docs about this
do_CreateInstance returns a new object every time. do_GetService creates one object and caches it, then keeps returning the cached object.
In practice, for any given class you'd only use one or the other, depending on whether the class is meant to be a singleton or not.
-Boris _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform