Zhimin Zhan
2010-Nov-07 23:31 UTC
On Mac: undefined method `create_popup_menu'' for #<Wx::TaskBarIcon>
Hi there, I got the following error every time when I tried right clicking the app icon on Dock. Env: Mac OS X 10.6 wxRuby: wxruby-2.0.1-universal-darwin-9 Error: undefined method `create_popup_menu'' for #<Wx::TaskBarIcon:0x1884be40> Backtrace: /Users/zhimin/Work/projects/testwise/vendor/source/darwin/gems/wxruby-2.0.1-universal-darwin-9/lib/wx/accessors.rb:50:in `method_missing'' /Users/zhimin/Work/projects/testwise/vendor/source/darwin/gems/wxruby-2.0.1-universal-darwin-9/lib/wx/accessors.rb:50:in `method_missing'' Thanks, Zhimin -- Posted via http://www.ruby-forum.com/.
Åukasz Korecki
2010-Nov-21 20:49 UTC
[wxruby-users] On Mac: undefined method `create_popup_menu'' for #<Wx::TaskBarIcon>
Hi! The docs for TaskBarIcon provide you with an explanation: http://wxruby.rubyforge.org/doc/taskbaricon.html#TaskBarIcon_createpopupmenu If you aren''t planning to add any menus for the dock icon you can simply use this method: https://gist.github.com/709130 Hope that helps! ?ukasz -- Posted via http://www.ruby-forum.com/.