]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/listbox.cpp
positioning of the insertion point at the end
[wxWidgets.git] / src / mac / carbon / listbox.cpp
index e50c2f440571a5f4f64a25900127259ca83df2db..b6d64e70871509e0de1f0979b10f755a9a46004c 100644 (file)
@@ -71,7 +71,7 @@ static pascal  void DataBrowserItemNotificationProc(ControlRef browser, DataBrow
     long ref = GetControlReference( browser ) ;
     if ( ref )
     {
-        wxListBox* list = wxDynamicCast( ref , wxListBox ) ;
+        wxListBox* list = wxDynamicCast( (wxObject*) ref , wxListBox ) ;
         for ( size_t i = 0 ; i < list->m_idArray.GetCount() ; ++i )
             if ( list->m_idArray[i] == (long) itemID )
             {
@@ -128,7 +128,7 @@ static pascal OSStatus ListBoxGetSetItemData(ControlRef browser,
                    long ref = GetControlReference( browser ) ;
                    if ( ref )
                    {
-                       wxListBox* list = wxDynamicCast( ref , wxListBox ) ;
+                       wxListBox* list = wxDynamicCast( (wxObject*) ref , wxListBox ) ;
                        for ( size_t i = 0 ; i < list->m_idArray.GetCount() ; ++i )
                            if ( list->m_idArray[i] == (long) itemID )
                            {