for RubyMotion