On Tue, Sep 16, 2008 at 5:30 PM, Jean-Baptiste BRIAUD - Novlog <
[EMAIL PROTECTED]> wrote:

> I defined a singleton class.


How did you define your singleton?  The getInstance() wrapper is produced
when your class has a type:"singleton" entry.

>
> I noticed that it is working to get the singleton this way :
> var wf = n.WindowFactory.getInstance;

but it doesn't work to get it this way :
> var wf = n.WindowFactory.getInstance();


Is wf some value other than undefined? If so, what value is it?  You're not
adding a static called getInstance are you?  What does this display:
  this.warn("getInstance=" + getInstance);

Is 'n' a top-level namespace or a variable name?  If a variable name, what
is n.WindowFactory?  A class reference or an instance of something?

It sounds a lot like you don't have a type:"singleton" entry in your class
map.

If the above doesn't help you solve the problem, please attach a small but
complete failing singleton class that we can look at and comment on.

Cheers,

Derrell
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to