@implementation wxPoserNSButton : NSButton
- (void)wxNSButtonAction: (id)sender
{
- wxASSERT_MSG(self==sender,"Received wxNSButtonAction from another object");
+ wxASSERT_MSG((id)self==sender,"Received wxNSButtonAction from another object");
wxCocoaNSButton *button = wxCocoaNSButton::GetFromCocoa(self);
wxCHECK_RET(button,"wxNSButtonAction received without associated wx object");
button->Cocoa_wxNSButtonAction();
wxBitmapButton::~wxBitmapButton()
{
- DisassociateNSButton(m_cocoaNSView);
+ DisassociateNSButton(GetNSButton());
}
void wxBitmapButton::Cocoa_wxNSButtonAction(void)
wxButton::~wxButton()
{
- DisassociateNSButton(m_cocoaNSView);
+ DisassociateNSButton(GetNSButton());
}
void wxButton::Cocoa_wxNSButtonAction(void)
wxCheckBox::~wxCheckBox()
{
- DisassociateNSButton(m_cocoaNSView);
+ DisassociateNSButton(GetNSButton());
}
void wxCheckBox::SetValue(bool value)
wxControl::~wxControl()
{
- DisassociateNSControl(m_cocoaNSView);
+ DisassociateNSControl(GetNSControl());
}
wxSize wxControl::DoGetBestSize() const
[GetNSTableView() setDataSource: nil];
[m_cocoaDataSource release];
[m_cocoaItems release];
- DisassociateNSTableView(m_cocoaNSView);
+ DisassociateNSTableView(GetNSTableView());
}
int wxListBox::CocoaDataSource_numberOfRows()
m_radioMaster = NULL;
}
// normal stuff
- DisassociateNSButton(m_cocoaNSView);
+ DisassociateNSButton(GetNSButton());
}
void wxRadioButton::SetValue(bool value)
wxStaticBox::~wxStaticBox()
{
- DisassociateNSBox(m_cocoaNSView);
+ DisassociateNSBox(GetNSBox());
}
void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const
wxStaticText::~wxStaticText()
{
- DisassociateNSTextField(m_cocoaNSView);
+ DisassociateNSTextField(GetNSTextField());
}
void wxStaticText::SetLabel(const wxString& label)
wxTextCtrl::~wxTextCtrl()
{
- DisassociateNSTextField(m_cocoaNSView);
+ DisassociateNSTextField(GetNSTextField());
}
void wxTextCtrl::Cocoa_didChangeText(void)
void wxTopLevelWindowCocoa::CocoaReplaceView(WX_NSView oldView, WX_NSView newView)
{
- if([m_cocoaNSWindow contentView] == oldView)
+ if([m_cocoaNSWindow contentView] == (id)oldView)
[m_cocoaNSWindow setContentView:newView];
}