Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-20-2009, 10:50 AM   #2 (permalink)
krille
New Member
 
Join Date: Jun 2009
Posts: 2
Lightbulb

I fixed the problem myself. It is nothing wrong with the TouchXML Code - it was kind of stupid, but maybe someone might come across the same thing, so I am going to post it here.

1) I had a mutable array set up as instance variables like this:

Code:
    @interface XMLParser : NSObject {

    // ...  
    NSMutableArray *mobil;  
    // ...  
    }   
    @property(nonatomic, retain) NSMutableArray *mobil;  
    @end
Everytime I wanted to reset and store new data inside the array I did:
Code:
self.mobil = nil;
Which did not what I wanted to do, so this is the better approach:
Code:
[self.mobil removeAllObjects];
2) The dealloc method has to be like this to fix the leaks (because mobil is defined as a property):
Code:
    -(void)dealloc {  
      [mobil release];  
      self.mobil = nil;  
  }
Whew, that has been a lot of work to find out - hope it saves someone else some time :-)
krille is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Online Users: 112
7 members and 105 guests
dljeffery, Max, mlo, noobAppDeveloper, Pof, Rossco, scotopia
Most users ever online was 779, 05-11-2009 at 09:55 AM.
» Stats
Members: 24,142
Threads: 38,919
Posts: 170,747
Top Poster: smasher (2,565)
Welcome to our newest member, p2digital
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:17 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.