noreply at rubyforge.org
2008-Dec-08 14:07 UTC
[wxruby-development] [ wxruby-Bugs-23140 ] Wx::App cleaning: removing N/A methods, changing exception handling
Bugs item #23140, was opened at 08/12/2008 15:07 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=23140&group_id=35 Category: Incorrect or missing docs Group: None Status: Open Resolution: None Priority: 3 Submitted By: Pascal Hurni (phi) Assigned to: Alex Fenton (brokentoy) Summary: Wx::App cleaning: removing N/A methods, changing exception handling Initial Comment: Hi, I cleaned up the Wx::App class. Some methods were referenced in the docs and missing in the code. I removed them from the doc. Another modification concerns exception handling: We could only handle exceptions ala ruby in on_init and by overriding main_loop. With the latter, only "fatal" exceptions could be handled because there was no way to let the main loop continue after the rescue. The patch I propose is very simple, it introduces the OnRun() method to be ruby overridden. There you may handle the exceptions and retry the mehtod which will continue the main loop. I updated the docs as well concerning this new way of handling exceptions. Note that I did only test this on MSW. It _should_ work on OSX and Linux because overriding OnRun() is legal! But please do test it before applying the patch. Regards, Pascal ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=23140&group_id=35