scottymac/cocosmotion — pull request #1 by lrz (2012-06-26 09:08:57+00:00)
Title: Fix for update: bug

This fix is required in order for cocos2d to be able to send an update: message to classes defined in RubyMotion. The problem is that cocos2d performs this selector with the assumption that the method accepts a ccTime argument, however, this method is not declared in the header files in a way that the RubyMotion compiler could know at build time that the argument of this method is a ccTime (therefore the crash at runtime).

In order to work around this problem, we simply define this method on an NSObject category. Sadly I don't see a way to fix RubyMotion here.

Make sure to clean up everything + delete the .bridgesupport file before building again.