- (void)wxNSActionCellAction: (id)sender
{
- wxLogDebug("wxNSActionCellAction");
+ wxLogTrace(wxTRACE_COCOA,wxT("wxNSActionCellAction"));
wxCocoaNSActionCell *wxcontrol = wxCocoaNSActionCell::GetFromCocoa(sender);
- wxCHECK_RET(wxcontrol,"wxNSActionCellAction received but no wxCocoaNSActionCell exists!");
+ wxCHECK_RET(wxcontrol,wxT("wxNSActionCellAction received but no wxCocoaNSActionCell exists!"));
wxcontrol->CocoaTarget_wxNSActionCellAction();
}
bool wxToolBarTool::CreateButtonCell()
{
+ wxAutoNSAutoreleasePool pool;
+
NSImage *nsimage = [m_bmpNormal.GetNSImage(true) retain];
m_cocoaNSButtonCell = [[NSButtonCell alloc] initTextCell:nil];
[m_cocoaNSButtonCell setImage:nsimage];
void wxToolBar::Init()
{
m_owningFrame = NULL;
+ m_mouseDownTool = NULL;
}
wxToolBar::~wxToolBar()
untilMouseUp:NO])
{
m_mouseDownTool = NULL;
- wxLogDebug("Button was clicked after drag!");
+ wxLogTrace(wxTRACE_COCOA,wxT("Button was clicked after drag!"));
}
[buttonCell setHighlighted: NO];
}
untilMouseUp:NO])
{
m_mouseDownTool = NULL;
- wxLogDebug("Button was clicked!");
+ wxLogTrace(wxTRACE_COCOA,wxT("Button was clicked!"));
}
[buttonCell setHighlighted: NO];
}
bool wxToolBar::Realize()
{
+ wxAutoNSAutoreleasePool pool;
+
wxToolBarToolsList::compatibility_iterator node;
NSSize totalSize = NSZeroSize;
// This is for horizontal, TODO: vertical