I use an object to get some values with it and return this values.
The values which will be returned are still in this object.
Heres the code:
XMLErrorParser *xmlErrorParser = [XMLErrorParser alloc];
[xmlErrorParser parseData: data];
return xmlErrorParser.errors;
So how can i release the xmlErrorParser Object and return the values of it?
Thanks.
Just return an auto-released version of the object
errorsholds.Without giving us more details about what
XMLErrorParseris, lets assume thaterrorsholds someNSArray:(Note that you were missing the initialization for the error parser object.)