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:inmethod_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

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: Get rid of the 'create_popup_menu' error when defining a dock icon for wxRuby app · GitHub

Hope that helps!

Łukasz