• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
program termination after releasing self defined NSXMLParser class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

program termination after releasing self defined NSXMLParser class


  • Subject: program termination after releasing self defined NSXMLParser class
  • From: Dominic Dauer <email@hidden>
  • Date: Fri, 16 Apr 2010 00:43:06 +0200

Hi all,
I am writing on an app for the iPhone/iPod which parses a xml Document to display the data in table views.
I want to ask something fundamental.
I created my own class of NSXMLParser:

-----------------------------------------------------------------

XMLParser.h

#import <Foundation/Foundation.h>

@interface XMLParser : NSXMLParser {

}

@end

-----------------------------------------------------------------

XMLParser.m

#import "XMLParser.h"

@implementation XMLParser

-(void)dealloc {
	[super dealloc];
}

@end

-----------------------------------------------------------------

With the purpose to test these simple class I just did the following in the controller class of one view:

-(BOOL)textFieldShouldBeginEditing:(UITextField *)textField {

	XMLParser *parser = [[XMLParser alloc] initWithContentsOfURL:[NSURL URLWithString:@"http://localhost/test/out.xml";]];
	[parser setDelegate:parser];
	[parser parse];

	[parser release];

	return NO;
}

-----------------------------------------------------------------

Everything works fine until call the release method to the parser. In the simulator the app is terminating without any message in the log.
I guess I do a fundamental mistake.

Any ideas?

Gruß Dominic

Gruß Dominic

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: program termination after releasing self defined NSXMLParser class
      • From: Alexander Spohr <email@hidden>
    • Re: program termination after releasing self defined NSXMLParser class
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Measuring aliased text for drawing
  • Next by Date: Re: program termination after releasing self defined NSXMLParser class
  • Previous by thread: Measuring aliased text for drawing
  • Next by thread: Re: program termination after releasing self defined NSXMLParser class
  • Index(es):
    • Date
    • Thread