• 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
NSMutableArray count causes EXC_BAD_ACCESS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMutableArray count causes EXC_BAD_ACCESS


  • Subject: NSMutableArray count causes EXC_BAD_ACCESS
  • From: Andrew Gehring <email@hidden>
  • Date: Sun, 15 Aug 2010 16:12:49 -0600

I'm new to XCode /Obj-c, so please forgive my my transgressions...

I have 'NSMutableArray *members;'

I load the array with XML data:

        members = [[NSMutableArray alloc] init];
	NSArray *memberElements = [doc nodesForXPath:@"//member/value/string"
error:&error];
	for (NSXMLElement *xmlElement in memberElements)
		[members addObject:[xmlElement stringValue]];

I can "Log" the array, and it contains the expected data:

	NSLog(@"Members: %@", members);

But when I try to count, I get a EXC_BAD_ACCESS

	NSLog(@"Count: %@", [members count]);


Any help would be appreciated.

Andrew
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSMutableArray count causes EXC_BAD_ACCESS
      • From: Mark Woollard <email@hidden>
    • Re: NSMutableArray count causes EXC_BAD_ACCESS
      • From: Christiaan Hofman <email@hidden>
  • Prev by Date: Re: Xcode and svn
  • Next by Date: Re: NSMutableArray count causes EXC_BAD_ACCESS
  • Previous by thread: Re: Xcode and svn
  • Next by thread: Re: NSMutableArray count causes EXC_BAD_ACCESS
  • Index(es):
    • Date
    • Thread