From: David Elliott Date: Mon, 14 Jul 2003 13:05:19 +0000 (+0000) Subject: Use the new wx/cocoa/autorelease.h header. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/493902ac5be1c347e35c3550cd35d68696d02a61 Use the new wx/cocoa/autorelease.h header. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/cocoa/app.mm b/src/cocoa/app.mm index e264d8a408..28ef36b30d 100644 --- a/src/cocoa/app.mm +++ b/src/cocoa/app.mm @@ -31,6 +31,7 @@ #include "wx/module.h" #include "wx/cocoa/ObjcPose.h" +#include "wx/cocoa/autorelease.h" #if wxUSE_WX_RESOURCES # include "wx/resource.h" @@ -97,21 +98,6 @@ wxPoseAsInitializer *wxPoseAsInitializer::sm_first = NULL; @end // wxPoserNSApplication WX_IMPLEMENT_POSER(wxPoserNSApplication); -class wxAutoNSAutoreleasePool -{ -public: - wxAutoNSAutoreleasePool() - { - m_pool = [[NSAutoreleasePool alloc] init]; - } - ~wxAutoNSAutoreleasePool() - { - [m_pool release]; - } -protected: - NSAutoreleasePool *m_pool; -}; - // ============================================================================ // functions // ============================================================================