Hi,
You don't have to call the method manually. Qooxdoo is doing this automatically
on the onload of the page.
Tino
Am 22.07.2011 um 16:49 schrieb Simon White:
Hi Alexander
Thank-you for your comments.
So if I want a shutdown button on my application then all it needs to do
is cause the browser to navigate to another web-page. Is there any harm
in calling the qx.core.ObjectRegistry~shutdown() method from a button?
I had tried it and always got the following error which is why I started
this thread:
Assertion error! Could not fire event 'useraction' on target
'undefined': Invalid event target.: Expected value not to be null but
found null!
I assume it is because it should not be called from within a widget so I
was looking for some more information about how this method should be
used or the best practice for shutting down an application.
Thanks,
Simon
On 22/07/2011 2:56 AM, Alexander Steitz wrote:
Hi Simon,
On Thursday 21 July 2011 21:07:44 Simon White wrote:
1) If I want a user to terminate an application what method should be
called. I was thinking of using an Exit Button in a window or toolbar
that could be used to terminate the entire application. Is this the
proper way to shutdown a QooxDoo application. If so do I just call the
terminate method of the application?
Yes, there is.
-> http://demo.qooxdoo.org/current/apiviewer/#qx.core.ObjectRegistry~shutdown
--snip--
// starts the disposing of *all* objects of the registry
// This is automatically executed at application shutdown
qx.core.ObjectRegistry.shutdown();
--snip--
On the other hand, the shutdown is automatically executed if the user
navigates away from the page. So you do not need to call this method manually
- a redirect to another page would also do the job.
2) On my windows I am planning to use protected members to hold
references to child widgets. Do these have to be disposed manually? If
so am I using the proper method as shown in my code below?
Seems to me that everything is implemented in the right way. If you want to
test your destructor you can find useful infos at the manual article about
"Memory Management"
http://manual.qooxdoo.org/1.5.x/pages/development/memory_management.html
Regards,
Alex
------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks& Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Tino Butz
Mobile Architect
1&1 Internet AG - Web Technologies
Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
Telefon: +49 721 91374-4488
[email protected]<mailto:[email protected]>
Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Robert Hoffmann,
Markus Huhn, Hans-Henning Kettler, Dr. Oliver Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren
------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel