class WXDLLEXPORT wxMenu;
class wxTaskBarIconCocoaImpl;
-class wxTaskBarIconDockImpl;
class WXDLLEXPORT wxTaskBarIcon : public wxTaskBarIconBase
{
- friend class wxTaskBarIconDockImpl;
+ friend class wxTaskBarIconCocoaImpl;
DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
public:
//type of taskbar item to create (currently only DOCK is implemented)
virtual ~wxTaskBarIconCocoaImpl();
inline wxTaskBarIcon* GetTaskBarIcon() { return m_taskBarIcon; }
protected:
+ inline wxMenu* CreatePopupMenu()
+ { wxASSERT(m_taskBarIcon);
+ m_taskBarIcon->CreatePopupMenu();
+ }
wxTaskBarIcon *m_taskBarIcon;
wxTaskBarIconWindow *m_iconWindow;
private:
WX_NSMenu wxTaskBarIconDockImpl::CocoaDoGetDockNSMenu()
{
- wxMenu *dockMenu = m_taskBarIcon->CreatePopupMenu();
+ wxMenu *dockMenu = CreatePopupMenu();
if(!dockMenu)
return nil;
if(!m_iconWindow)