I took a stab at fixing the class returns tonight and I really didn''t get anywhere. It seemed that using a %typemap(out) would do the trick, according to the swig documentation, but it didn''t affect the warning messages at all. For example: %typemap(out) wxPoint { $result = SWIG_NewPointerObj((void *) &$1, SWIGTYPE_p_wxPoint, 1); } This doesn''t fix, for example, ScreenToClient in wxWindow.h. It''s entirely likely I did something wrong. How are we supposed to fix these? Roy
Apparently Analagous Threads
- [845] trunk/wxruby2/swig/classes: Added MultiChoiceDialog in class form
- [794] trunk/wxruby2: Fix get_ruby_object so it works with SWIG tracking, move find_window_xx
- [791] trunk/wxruby2/swig/classes/include/wxWindow.h: Remove shadowing GetBestSize def causing warning, plus strip crufty comments
- [Fwd: Re: [Swig] Re: Object return problem]
- [789] trunk/wxruby2/swig/classes/Window.i: Make GetChildren work (tho general fix for get_ruby_object still needed)