From: mattia\.barbon\@libero\.it <mat...@li...> - 2005-02-23 17:38:56
|
Hello, > My application needs to call the as yet undocumented method= > GetTemplates(). I've noticed that it returns a list of templates. Th= at's > not a problem, but it differs from GetDocuments() which returns = a list > ref. And both methods return a wxList if you use them from C++= . > > GetDocuments /used/ to return a list also, but we changed that a= LONG > time ago. I don't have a record of the email accompanying the p= atch, but > it was probably to make it fit the documentation ("Returns = a reference > to the list of documents"). I must have overlooked GetTem= plates() since > it wasn't documented. > > To cut a long story short= , I've submitted a documentation patch* for > wxWidgets to document Get= Templates(), but the wxPerl version differs for > no good reason. So, w= ould anyone object if we apply this patch to > GetTemplates: I thi= nk that since the methods do equivalent things in C++ (returning a list = og objects) then the wxPerl wrappers should do equivalent things as well= . I do not use the docview classes, but I am in favour to making the beh= aviour consistent. Regards Mattia =0A=0A=0A=0A______________________= ______________________________________=0A6X velocizzare la tua navigazion= e a 56k? 6X Web Accelerator di Libero!=0AScaricalo su INTERNET GRATIS 6X = http://www.libero.it=0A |
From: Simon F. <sf...@fl...> - 2005-02-23 18:21:06
|
mat...@li... wrote: > Hello, > > >>My application needs to call the as yet undocumented method >>GetTemplates(). I've noticed that it returns a list of templates. That's >>not a problem, but it differs from GetDocuments() which returns a list >>ref. And both methods return a wxList if you use them from C++. >> >>GetDocuments /used/ to return a list also, but we changed that a LONG >>time ago. I don't have a record of the email accompanying the patch, but >>it was probably to make it fit the documentation ("Returns a reference >>to the list of documents"). I must have overlooked GetTemplates() since >>it wasn't documented. >> >>To cut a long story short, I've submitted a documentation patch* for >>wxWidgets to document GetTemplates(), but the wxPerl version differs for >>no good reason. So, would anyone object if we apply this patch to >>GetTemplates: > > > I think that since the methods do equivalent things in C++ > (returning a list og objects) then the wxPerl wrappers should do > equivalent things as well. I do not use the docview classes, > but I am in favour to making the behaviour consistent. Great. It's unlikely that this change will affect anyone else since it isn't documented. I was about to submit a patch to add GetDocumentTemplates() before I noticed that it already existed with a different name. Thanks Simon |