Re: Array index out of bounds...
Re: Array index out of bounds...
- Subject: Re: Array index out of bounds...
- From: Jerry LeVan <email@hidden>
- Date: Sun, 25 Jul 2004 14:33:57 -0400
Sigh, I wish you could have written earlier, I used a crumb
trail of NSLog's till I ran down the problem...
Right now it looks like
[cmd stringByTrimmingCharactersInSet:
[NSCharacterSet whitespaceAndNewlineCharacterSet]]
might not be reducing strings to the empty string when they
are composed blanks and newlines taken from a text view.
Jerry
On Jul 25, 2004, at 2:17 PM, Nick Zitzmann wrote:
On Jul 25, 2004, at 11:30 AM, Jerry LeVan wrote:
I have developed a problem with my app. I am getting an
array index out of bounds and I can't figure out where
the rascal is failing. I just a message on the console
that the bad thing happened.
*** -[NSCFString characterAtIndex:]: Range or index out of bounds
How can I tell the debugger to show me where this happens?
Try setting a symbolic breakpoint on "+[NSException raise]" without
the quotes. You can do this in Xcode's Breakpoints window.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.