#391: HotCocoa on_notification method stopped functioning in MacRuby 0.5 under Snow Leopard --------------------------------------+------------------------------------- Reporter: trevor@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: Component: MacRuby | Resolution: fixed Keywords: HotCocoa on_notification | --------------------------------------+------------------------------------- Comment(by rich@…): Replying to [comment:6 mattaimonetti@…]: Here is what i am observing is happening. i just committed code to hold all listeners but when you do: on_notification ... end there is an object created internally which is the listener. that object is being garbage collected. it was likely a bug under 0.4 that did not garbage collect this but now it is. you can do one of two things. reinstall macruby after my commit tonight OR just do: @listener = on_notification ... end thus you hold that in an instance variable so it will not be garbage collected. See if that works -- Ticket URL: <http://www.macruby.org/trac/ticket/391#comment:7> MacRuby <http://macruby.org/>