git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45310
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#if wxMAC_USE_NATIVE_TOOLBAR
{
#if wxMAC_USE_NATIVE_TOOLBAR
{
- wxASSERT( tool->GetControl() != NULL );
- HIToolbarItemRef item;
+ wxCHECK_MSG( tool->GetControl(), false, _T("control must be non-NULL") );
+
HIViewRef viewRef = (HIViewRef) tool->GetControl()->GetHandle() ;
// as this control now is part of both the wxToolBar children and the native toolbar, we have to increase the
// reference count to make sure we are not dealing with zombie controls after the native toolbar has released its views
HIViewRef viewRef = (HIViewRef) tool->GetControl()->GetHandle() ;
// as this control now is part of both the wxToolBar children and the native toolbar, we have to increase the
// reference count to make sure we are not dealing with zombie controls after the native toolbar has released its views