]> git.saurik.com Git - wxWidgets.git/commitdiff
Use the new wx/cocoa/autorelease.h header.
authorDavid Elliott <dfe@tgwbd.org>
Mon, 14 Jul 2003 13:05:19 +0000 (13:05 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Mon, 14 Jul 2003 13:05:19 +0000 (13:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/app.mm

index e264d8a408d58cbbedd4a97fa7b0891e4a97261e..28ef36b30d72eccaf7ce39651cf86f03668eb021 100644 (file)
@@ -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
 // ============================================================================