wxMenuItem *item = NULL;
if (id != 0) // get the wxMenuItem reference from the MenuRef
- GetMenuItemRefCon( menuRef, menuItemIndex, (UInt32*) &item );
+ GetMenuItemRefCon( menuRef, menuItemIndex, (URefCon*) &item );
if (item)
{
// 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(