cocoa bridge added

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2007-05-22 17:33:47 +00:00
parent 6196dabfb0
commit 9676c44fda
2 changed files with 5 additions and 1 deletions

View File

@@ -900,6 +900,9 @@ bool wxApp::OnInitGui()
sQuitHandler , 0 , FALSE ) ; sQuitHandler , 0 , FALSE ) ;
} }
if ( !wxMacInitCocoa() )
return false;
return true ; return true ;
} }
@@ -1194,6 +1197,7 @@ bool wxApp::Yield(bool onlyIfNeeded)
void wxApp::MacDoOneEvent() void wxApp::MacDoOneEvent()
{ {
wxMacAutoreleasePool autoreleasepool;
EventRef theEvent; EventRef theEvent;
s_inReceiveEvent = true ; s_inReceiveEvent = true ;

View File

@@ -29,5 +29,5 @@ wxMacAutoreleasePool::wxMacAutoreleasePool()
wxMacAutoreleasePool::~wxMacAutoreleasePool() wxMacAutoreleasePool::~wxMacAutoreleasePool()
{ {
[m_pool release]; [(NSAutoreleasePool*)m_pool release];
} }