<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/expatobjc/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/expatobjc/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/expatobjc/bugs/</id><updated>2003-01-28T16:21:06Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>buffered reading</title><link href="https://sourceforge.net/p/expatobjc/bugs/3/" rel="alternate"/><published>2003-01-28T16:21:06Z</published><updated>2003-01-28T16:21:06Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.neta464a12e352f83d3b8b82b2f89e91be6708ed370</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The start method had to be changed to work properly. If&lt;br /&gt;
some dataRead returned a length of data read below the&lt;br /&gt;
buffer size, the start method has interpreted this as&lt;br /&gt;
being at the end of the file, which is completly wrong.&lt;br /&gt;
Changed it to the comparison against a returned length&lt;br /&gt;
of 0 which indicates &amp;amp;quot;nothing read&amp;amp;quot;.&lt;/p&gt;
&lt;p&gt;- start&lt;br /&gt;
{&lt;br /&gt;
for (;;) {&lt;br /&gt;
int bytes_read, done;&lt;br /&gt;
void *buff = XML_GetBuffer(parser, bufsize);&lt;/p&gt;
&lt;p&gt;if (buff == NULL)&lt;br /&gt;
[self errorHandler:XML_GetErrorCode(parser)];&lt;/p&gt;
&lt;p&gt;bytes_read = [self dataRead:buff :bufsize];&lt;br /&gt;
//done = (bytes_read &amp;amp;lt; bufsize);&lt;br /&gt;
done = (bytes_read == 0); // &amp;amp;lt;&amp;amp;lt;--- &amp;amp;lt;&amp;amp;lt;--- &amp;amp;lt;&amp;amp;lt;---&lt;/p&gt;
&lt;p&gt;if (!XML_ParseBuffer(parser, bytes_read, done))&lt;br /&gt;
[self errorHandler:XML_GetErrorCode(parser)];&lt;br /&gt;
if (done)&lt;br /&gt;
break;&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>method return values</title><link href="https://sourceforge.net/p/expatobjc/bugs/2/" rel="alternate"/><published>2002-11-26T15:35:25Z</published><updated>2002-11-26T15:35:25Z</updated><author><name>Rudi Angela</name><uri>https://sourceforge.net/u/olmeca/</uri></author><id>https://sourceforge.net82ae2bdfa7f2aa34d72c0f899720f18ff187f618</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Many of the methods defined in XMLParser class don't have an explicited return value. My compiler (gcc 3 on MacOSX) assumes an integer return value in this case.&lt;br /&gt;
However, some of the methods don't contain a return statement, which leads to compiler errors.&lt;br /&gt;
I suggest you make the return types explicit:&lt;br /&gt;
'(int) foo' instead of just 'foo'.&lt;br /&gt;
Also you should include explicit return statements in the implementations of the methods.&lt;br /&gt;
Of course I have solved these problems in my local copies, but I think it would help the whole ObjC community if it is solved here.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Rudi Angela&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Initialization method</title><link href="https://sourceforge.net/p/expatobjc/bugs/1/" rel="alternate"/><published>2002-11-26T15:27:34Z</published><updated>2002-11-26T15:27:34Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netf688a2154e4622020bbe2737f32a808ea6cea52f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I noticed that when I subclassed the XMLParser class, my class's init method was not being called. So I looked into XMLParser.m for the cause. I found that in the XMLParser initializer called init:encoding:sep:bs: the init method of the superclass was called:&lt;br /&gt;
[super init].&lt;/p&gt;
&lt;p&gt;It would be better if init was called on XMLParser instead of it's superclass's:&lt;br /&gt;
[self init]&lt;/p&gt;
&lt;p&gt;That way my subclass's init would get called.&lt;br /&gt;
I suggest you consider this, as subclassing the init method is a common practice in ObjC coding.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Rudi Angela&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>