Hello,
I followed the tutorial available at Iphone Tutorial: Creating a RSS Feed Reader and wanted to add a search bar to the tableview and have it search the contents of the table. I Googled it and found nothing that worked. Any help that you could offer would be greatly appreciated.
Hello,
I followed the tutorial available at Iphone Tutorial: Creating a RSS Feed Reader and wanted to add a search bar to the tableview and have it search the contents of the table. I Googled it and found nothing that worked. Any help that you could offer would be greatly appreciated.
Ah, you must be the anonymous person who had the same problem as someone else, provided no more information, yet for some reason expected a different answer.
So, repeating that answer: my money is on a memory management issue in your parser.
Edit: at quick glance, that parser is leaking horribly. Leaks don't crash, but when I see memory management done that badly, I'm not at all surprised that something would be over-released or under-retained.
Ah, you must be the anonymous person who had the same problem as someone else, provided no more information, yet for some reason expected a different answer.
So, repeating that answer: my money is on a memory management issue in your parser.
Edit: at quick glance, that parser is leaking horribly. Leaks don't crash, but when I see memory management done that badly, I'm not at all surprised that something would be over-released or under-retained.
Yep, you guessed it. I guess I was hoping you would elaborate. I ran Instruments and found a ton of leaks. Tried releasing everything allocated and there is still a ton of errors. Care to help. Thank you so much for your helpful tutorial.
Yes, however i'm confused how this is done incorrectly. Maybe i'm not understanding something yet you state in the post is that you create an object, do something with it, and release it. The parser releases everything in the dealloc so I added self to each release and that didn't help. Thank you so much for helping me!
Oops, i'll read it a couple times over. I think I need to add self to the methods in the Parser.
Ok, so I think a major issue is in the parser didStartElement void statement. In your common mistakes post, you talk about how you shouldn't combine alloc/init and self in the same line. This is what's done in the parser didStartElement void. You also state that the parser should autorelease the objects. However, the objects are used later in the code. So when should I release this objects? Or am I reading this all wrong?
Those are problems, yes. Certainly not the only ones.
Autorelease doesn't mean the object dies. It means release later. This balances the alloc.
Keep rereading the properties thread. I think you're starting to head towards understanding, but you're not quite there yet.
Focusing on the parser didStartElement, the whole thing is coded in dot syntax. This is confusing me. How do I convert it so it is no longer written in dot syntax so I can autorelease it?