rubymotion-community / sugarcube

Some sugar for your cocoa. RubyMotion helpers.
Other
422 stars 66 forks source link

NSIndexPath#to_a raises exception. #177

Closed katsuyoshi closed 9 years ago

katsuyoshi commented 9 years ago

With arm64 or x86_64 architecture NSIndexPath#to_a raises exception.

<Error>: *** Terminating app due to uncaught exception 'TypeError', reason: 'expected instance of Pointer of type `Q', got `I' (TypeError)

I think it's not match the byte size between 32bit and 64bit. https://github.com/rubymotion/sugarcube/blob/master/lib/cocoa/sugarcube-foundation/nsindexpath.rb#L4

colinta commented 9 years ago

Fixed in 2.12.1

katsuyoshi commented 9 years ago

:+1: