Fix for nesting issue

Request new features or improvements here

Fix for nesting issue

Postby btate » Thu Apr 15, 2010 2:12 pm

I've just started using this library and I'm pretty happy with it. The one complaint/suggestion I have is that when I try to nest things, such as

Code: Select all
[TBXML textForElement:[TBXML childElementNamed:@"raceStartState" parentElement:raceNode]];


and the child element I'm looking for isn't there, I get a bad access error when nil is passed to textForElement. I'd like to avoid a ton of conditional statements, so I would suggest adding a line to functions such as textForElement that return an empty string if the element passed in is nil.
btate
 
Posts: 1
Joined: Thu Apr 15, 2010 2:08 pm

Re: Fix for nesting issue

Postby Tom Bradley » Thu Apr 15, 2010 2:14 pm

Yep that's a great idea!

I'll add that in asap.

Thanks!
Tom Bradley
Site Admin
 
Posts: 47
Joined: Sun Feb 21, 2010 8:44 pm


Return to Suggestions / Enhancements

Who is online

Users browsing this forum: No registered users and 1 guest

cron