Why am I getting an isEqualToString error in this Cocoa code?

后端 未结 5 1255
南笙
南笙 2021-01-28 13:02

I keep getting this error:

alt text http://img514.imageshack.us/img514/2203/help.tif

What is it? I never even called \"isEqualToString\".

Here Is my Joke

5条回答
  •  执笔经年
    2021-01-28 14:08

    The error is not in the definition of the Joke class, but somewhere it's being used. In most cases with errors like this, it's the result of a memory management error — some object (presumably a string) gets deallocated and another gets allocated in its old memory location. Try running with NSZombieEnabled and see if it turns up a message to a dealloced object.

提交回复
热议问题