rubymotion-community / BubbleWrap

Cocoa wrappers and helpers for RubyMotion (Ruby for iOS and OS X) - Making Cocoa APIs more Ruby like, one API at a time. Fork away and send your pull requests
Other
1.18k stars 208 forks source link

Fix hash new retain cycle #270

Closed joenoon closed 11 years ago

joenoon commented 11 years ago

Currently, any object that you call #trigger on will be retained indefinitely due to a bug with Hash.new: http://hipbyte.myjetbrains.com/youtrack/issue/RM-203

This fixes it, and adds specs so when we can eventually revert back to Hash.new syntax, we can be sure there isnt a regression.

clayallsopp commented 11 years ago

Whoa, that's unexpected. Good call! Thanks for the specs as well, really awesome to have those.