More progress on wxruby-swig. Nothing too exciting. It now support 36 classes, compared to the (apparently) 139 supported by wxRuby 0.3. A working version of the calendar sample is included. I made several changes to the sample. I have tentatively decided *not* to wrap the wxDateTime class, and instead to automatically convert to/from Ruby''s own DateTime class. My logic is that in any case where Ruby has an adequate class, we should use it instead of the corresponding wx class. I''m not sure if this is the right decision or not, but it is consistent with us not wrapping wxString. Comments are very welcome. Kevin
Kevin Smith wrote:> > I have tentatively decided *not* to wrap the wxDateTime class, and > instead to automatically convert to/from Ruby''s own DateTime class. > > My logic is that in any case where Ruby has an adequate class, we should > use it instead of the corresponding wx class. > > I''m not sure if this is the right decision or not, but it is consistent > with us not wrapping wxString. Comments are very welcome.That sounds like a reasonable approach to me. If there''s any problem with this, we''ll probably discover this during actual usage. Curt
I think I had to add some method to convert back and forth between wxDateTime and Date anyhow in the CalendarCtrl in the source code, and I thought it would have just been easier if wxDateTime could do that automatically. I totally agree. Nick Kevin Smith wrote:> More progress on wxruby-swig. Nothing too exciting. > > It now support 36 classes, compared to the (apparently) 139 supported > by wxRuby 0.3. A working version of the calendar sample is included. I > made several changes to the sample. > > I have tentatively decided *not* to wrap the wxDateTime class, and > instead to automatically convert to/from Ruby''s own DateTime class. > > My logic is that in any case where Ruby has an adequate class, we > should use it instead of the corresponding wx class. > > I''m not sure if this is the right decision or not, but it is > consistent with us not wrapping wxString. Comments are very welcome. > > Kevin > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > >