]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/app.cpp
copying native cursor under cocoa
[wxWidgets.git] / src / osx / carbon / app.cpp
index af71ecc6a35c261cf8f9809f5ebd140d8f5a6b54..f4a209b0a78911ff2f73ba4a921c04353a6d3475 100644 (file)
@@ -513,7 +513,7 @@ wxMenu* wxFindMenuFromMacCommand( const HICommand &command , wxMenuItem* &item )
             GetMenuItemRefCon( command.menu.menuRef , command.menu.menuItemIndex , &refCon ) ;
             itemMenu = wxFindMenuFromMacMenu( command.menu.menuRef ) ;
             if ( itemMenu != NULL && refCon != 0)
-                item = ((wxMenuItemImpl*) refCon)->GetWXPeer() ;
+                item = (wxMenuItem*) refCon;
         }
     }
 #endif
@@ -866,20 +866,12 @@ bool wxApp::ProcessIdle()
     return wxAppBase::ProcessIdle();
 }
 
-#if wxOSX_USE_COCOA_OR_CARBON
-
 int wxApp::OnRun()
 {
     wxMacAutoreleasePool pool;
     return wxAppBase::OnRun();
 }
 
-#else
-
-// iPhone version in utils.mm
-
-#endif
-
 #if wxOSX_USE_CARBON
 bool wxApp::DoInitGui()
 {