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
This commit is contained in:
David Elliott
2003-07-14 13:05:19 +00:00
parent 140e7468ab
commit 493902ac5b

View 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
// ============================================================================