Opened 7 years ago

Closed 7 years ago

#12838 closed defect (fixed)

wxTaskBarIcon does not work under wx 2.9 Cocoa

Reported by: mrx3000 Owned by:
Priority: normal Milestone:
Component: wxOSX Version: stable-latest
Keywords: Cc:
Blocked By: Blocking:
Patch: no


The following code does not result in any task bar icon being created. CUSTOM_STATUSITEM and DOCK parameters to wxTaskBarIcon were used with no result.

class myTrayIcon : public wxTaskBarIcon {



myTrayIcon() : wxTaskBarIcon(CUSTOM_STATUSITEM) {

wxBitmap bitmap(small1_xpm);
m_Icon = new wxIcon();
SetIcon(*m_Icon, _T("test"));



Change History (3)

comment:1 Changed 7 years ago by vadz

Is the problem reproducible in the taskbar sample?

comment:2 Changed 7 years ago by mrx3000

Yes, in that nothing is placed in a taskbar when I run that sample (it runs, does not fail - just does not result in anything happening to the taskbar).

It also does not result in the old "Carbon" behavior where the "task bar menu" was attached to the launcher application icon, either.

As a side note, it appears that the following line:, there is a wxWindow created with NULL parent, which seems to result in an assert. Don't know if this has anything to do with the problem.

comment:3 Changed 7 years ago by SC

  • Resolution set to fixed
  • Status changed from new to closed

(In [67084]) adding taskbar implementation for statusitem (menubar) and dock, fixes #12838

Note: See TracTickets for help on using tickets.