[wxruby-users] TaskBarIcon in OS X

Alex Fenton alex at pressure.to
Fri Mar 14 05:09:27 EDT 2008


David Grandinetti wrote:
> Is the Wx:TaskBarIcon supported under OS X? I can't seem to get it
> working. My code works under Windows, but not OS X. I thought it was
> something I was doing, so I tried the bigdemo.rb sample and that
> doesnt' seem to like OS X either.
It does work, but perhaps not in the way you were expecting. wxWidgets 
considers the 'TaskBar' on OS X to be the dock; if you run bigdemo, you 
should see that the icon in the dock is changed, and has the taskbar 
menu associated with it.

The purpose of the standard desktop elements (eg dock, menu bar, Windows 
taskbar) don't map exactly from OS to OS, but I think this is seen as 
the closest equivalent. According to the Apple HIG, the area on the 
right of the Menu Bar, where the power status, volume, clock etc is 
"reserved for use by Apple".

http://developer.apple.com/documentation/UserExperience/Conceptual/OSXHIGuidelines/XHIGMOSXEnvironment/chapter_8_section_4.html#//apple_ref/doc/uid/TP40002721-TPXREF139
http://developer.apple.com/documentation/UserExperience/Conceptual/OSXHIGuidelines/XHIGMenus/chapter_17_section_4.html#//apple_ref/doc/uid/TP30000356-CHDFJEAC

PS - there does seem to be a bug on OS X changing the Doc icon. But 
otherwise it works fine.

cheers
alex




More information about the wxruby-users mailing list