Thursday, 21 July 2011

Oh cocos2d....why didn't you warn me?!

Just a quick heads up, cocos2d barely gives any warnings to you if you've done a common mistake. I was trying to call a method using @selector(func) and I had just misspelt the function name, but it didn't tell me and I've spent the last 40 mins trying to solve SIGBART at
invocation = [NSInvocation invocationWithMethodSignature:sig];


in the depths of cocos2d's code. If you got a nasty bug, spend the time checking spelling first. Take nothing for granted :(

No comments:

Post a Comment