Ticket #11611 (closed defect: fixed)
wxTaskBarIcon menu item event handling at wxOSX/Carbon
|Reported by:||kosenko||Owned by:||csomor|
Menu item event handler of wxTaskBarIcon at wxOSX/Carbon 2.9.0 is not called in taskbar sample.
It is because SetMenuItemRefCon from Carbon API saves pointer to wxMenuItemCarbonImpl type but GetMenuItemRefCon reads this pointer as wxMenuItem type.
It looks like this was broken in r55419.
This patch fixed this bug only for taskbar, other calls of SetMenuItemRefCon and GetMenuItemRefCon probably should be reviewed and fixed in the same way.