#ifndef WX_PRECOMP
#include "wx/dcmemory.h"
+ #include "wx/menu.h"
+ #include "wx/toplevel.h"
+ #include "wx/icon.h"
#endif
#include "wx/mac/private.h"
-#include "wx/menu.h"
-#include "wx/icon.h"
-
-
class wxTaskBarIconImpl
{
public:
// When SetEventParameter is called it will decrement
// the reference count of the menu - we need to make
// sure it stays around in the wxMenu class here
- RetainMenu(hMenu);
+ CFRetain(hMenu);
// set the actual dock menu
err = SetEventParameter(