My app crash for an indefined reason and I end up with this log:
MyProj[9442:707] -[NSDecimalNumber length]: unrecognized selector sent to instance 0x2e6690
Can I have any more details ? What does 9442:707 mean, is it a line number ?
EDIT
In my code, I have added traces like:
NSLog(@"KEYS:%@", myKeys);
NSLog(@"KEYS ORDERED:%@", [myKeys sortedArrayUsingSelector:@selector(compare:)]);
But the second line crashes. The “length” error I have seems to come from this line (I do not use [something length] anywhere though).
2011-11-11 14:20:18.936 MyProj[9570:707] KEYS:(
330,
359,
362,
367,
352,
351,
364,
331,
350
)
... then crash... with above error
The iOS debugger is rather unclear in describing the exact problem sometimes.
Yet in your case it should be clear.
[NSDecimalNumber length]cannot be executed because the method length us unclear to it.Ref: http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSDecimalNumber_Class/Reference/Reference.html
Try finding the line where you use the length function and change it to something that does work. With a piece of code in your question we could be more precise on that.