Associate/Disassociate now check for non-NULL pointer instead of requiring
the caller to do so. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -57,8 +57,11 @@ WX_IMPLEMENT_POSER(wxPoserNSButton);
|
||||
|
||||
void wxCocoaNSButton::AssociateNSButton(WX_NSButton cocoaNSButton)
|
||||
{
|
||||
sm_cocoaHash.insert(wxCocoaNSButtonHash::value_type(cocoaNSButton,this));
|
||||
[cocoaNSButton setTarget: cocoaNSButton];
|
||||
[cocoaNSButton setAction: @selector(wxNSButtonAction:)];
|
||||
if(cocoaNSButton)
|
||||
{
|
||||
sm_cocoaHash.insert(wxCocoaNSButtonHash::value_type(cocoaNSButton,this));
|
||||
[cocoaNSButton setTarget: cocoaNSButton];
|
||||
[cocoaNSButton setAction: @selector(wxNSButtonAction:)];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user